public class ItemModelMesher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ModelManager |
modelManager |
protected java.util.Map<Item,ItemMeshDefinition> |
shapers |
private java.util.Map<java.lang.Integer,ModelResourceLocation> |
simpleShapes |
private java.util.Map<java.lang.Integer,IBakedModel> |
simpleShapesCache |
Constructor and Description |
---|
ItemModelMesher(ModelManager modelManager) |
Modifier and Type | Method and Description |
---|---|
private int |
getIndex(Item item,
int meta) |
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) |
private final java.util.Map<java.lang.Integer,ModelResourceLocation> simpleShapes
private final java.util.Map<java.lang.Integer,IBakedModel> simpleShapesCache
protected final java.util.Map<Item,ItemMeshDefinition> shapers
private final ModelManager modelManager
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)
private int getIndex(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()