Package net.minecraft.client.renderer
Class ItemModelMesher
- java.lang.Object
-
- net.minecraft.client.renderer.ItemModelMesher
-
- Direct Known Subclasses:
ItemModelMesherForge
public class ItemModelMesher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ModelManager
modelManager
it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelResourceLocation>
shapes
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<IBakedModel>
shapesCache
-
Constructor Summary
Constructors Constructor Description ItemModelMesher(ModelManager p_i46250_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
getIndex(Item p_199310_0_)
IBakedModel
getItemModel(Item p_199312_1_)
IBakedModel
getItemModel(ItemStack p_178089_1_)
ModelManager
getModelManager()
TextureAtlasSprite
getParticleIcon(ItemStack p_199309_1_)
TextureAtlasSprite
getParticleIcon(IItemProvider p_199934_1_)
void
rebuildCache()
void
register(Item p_199311_1_, ModelResourceLocation p_199311_2_)
-
-
-
Field Detail
-
shapes
public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelResourceLocation> shapes
-
shapesCache
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<IBakedModel> shapesCache
-
modelManager
private final ModelManager modelManager
-
-
Constructor Detail
-
ItemModelMesher
public ItemModelMesher(ModelManager p_i46250_1_)
-
-
Method Detail
-
getParticleIcon
public TextureAtlasSprite getParticleIcon(IItemProvider p_199934_1_)
-
getParticleIcon
public TextureAtlasSprite getParticleIcon(ItemStack p_199309_1_)
-
getItemModel
public IBakedModel getItemModel(ItemStack p_178089_1_)
-
getItemModel
@Nullable public IBakedModel getItemModel(Item p_199312_1_)
-
getIndex
private static int getIndex(Item p_199310_0_)
-
register
public void register(Item p_199311_1_, ModelResourceLocation p_199311_2_)
-
getModelManager
public ModelManager getModelManager()
-
rebuildCache
public void rebuildCache()
-
-