public class ItemModelMesher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<IBakedModel> |
itemModels |
it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelResourceLocation> |
modelLocations |
private ModelManager |
modelManager |
Constructor and Description |
---|
ItemModelMesher(ModelManager modelManager) |
Modifier and Type | Method and Description |
---|---|
private static int |
getIndex(Item itemIn) |
IBakedModel |
getItemModel(Item itemIn) |
IBakedModel |
getItemModel(ItemStack stack) |
ModelManager |
getModelManager() |
TextureAtlasSprite |
getParticleIcon(IItemProvider itemProvider) |
TextureAtlasSprite |
getParticleIcon(ItemStack stack) |
void |
rebuildCache() |
void |
register(Item itemIn,
ModelResourceLocation modelLocation) |
public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelResourceLocation> modelLocations
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<IBakedModel> itemModels
private final ModelManager modelManager
public ItemModelMesher(ModelManager modelManager)
public TextureAtlasSprite getParticleIcon(IItemProvider itemProvider)
public TextureAtlasSprite getParticleIcon(ItemStack stack)
public IBakedModel getItemModel(ItemStack stack)
@Nullable public IBakedModel getItemModel(Item itemIn)
private static int getIndex(Item itemIn)
public void register(Item itemIn, ModelResourceLocation modelLocation)
public ModelManager getModelManager()
public void rebuildCache()