@Environment(value=CLIENT) public class ItemModels extends Object
Modifier and Type | Field and Description |
---|---|
it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelIdentifier> |
modelIds |
private BakedModelManager |
modelManager |
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<BakedModel> |
models |
Constructor and Description |
---|
ItemModels(BakedModelManager modelManager) |
Modifier and Type | Method and Description |
---|---|
BakedModel |
getModel(Item item) |
BakedModel |
getModel(ItemStack stack) |
private static int |
getModelId(Item item) |
BakedModelManager |
getModelManager() |
Sprite |
getSprite(ItemConvertible itemConvertible) |
Sprite |
getSprite(ItemStack stack) |
void |
putModel(Item item,
ModelIdentifier modelId) |
void |
reloadModels() |
public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelIdentifier> modelIds
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BakedModel> models
private final BakedModelManager modelManager
public ItemModels(BakedModelManager modelManager)
public Sprite getSprite(ItemConvertible itemConvertible)
public BakedModel getModel(ItemStack stack)
@Nullable public BakedModel getModel(Item item)
private static int getModelId(Item item)
public void putModel(Item item, ModelIdentifier modelId)
public BakedModelManager getModelManager()
public void reloadModels()