public class ItemModelMesher
extends java.lang.Object
Constructor and Description |
---|
ItemModelMesher(ModelManager modelManager) |
Modifier and Type | Method and Description |
---|---|
protected IBakedModel |
getItemModel(Item item,
int meta) |
IBakedModel |
getItemModel(ItemStack stack) |
protected int |
getMetadata(ItemStack stack) |
ModelManager |
getModelManager() |
TextureAtlasSprite |
getParticleIcon(Item item) |
TextureAtlasSprite |
getParticleIcon(Item item,
int meta) |
void |
rebuildCache() |
void |
register(Item item,
int meta,
ModelResourceLocation location) |
void |
register(Item item,
ItemMeshDefinition definition) |
public ItemModelMesher(ModelManager modelManager)
public TextureAtlasSprite getParticleIcon(Item item)
public TextureAtlasSprite getParticleIcon(Item item, int meta)
public IBakedModel getItemModel(ItemStack stack)
protected int getMetadata(ItemStack stack)
@Nullable protected IBakedModel getItemModel(Item item, int meta)
public void register(Item item, int meta, ModelResourceLocation location)
public void register(Item item, ItemMeshDefinition definition)
public ModelManager getModelManager()
public void rebuildCache()