Package net.minecraftforge.client
Class ItemModelMesherForge
- java.lang.Object
-
- net.minecraft.client.renderer.ItemModelMesher
-
- net.minecraftforge.client.ItemModelMesherForge
-
public class ItemModelMesherForge extends ItemModelMesher
Wrapper around ItemModeMesher that cleans up the internal maps to respect ID remapping.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Map<IRegistryDelegate<Item>,ModelResourceLocation>
locations
(package private) java.util.Map<IRegistryDelegate<Item>,IBakedModel>
models
-
Fields inherited from class net.minecraft.client.renderer.ItemModelMesher
shapes
-
-
Constructor Summary
Constructors Constructor Description ItemModelMesherForge(ModelManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
getItemModel(Item item)
ModelResourceLocation
getLocation(ItemStack stack)
void
rebuildCache()
void
register(Item item, ModelResourceLocation location)
-
Methods inherited from class net.minecraft.client.renderer.ItemModelMesher
getItemModel, getModelManager, getParticleIcon, getParticleIcon
-
-
-
-
Field Detail
-
locations
final java.util.Map<IRegistryDelegate<Item>,ModelResourceLocation> locations
-
models
final java.util.Map<IRegistryDelegate<Item>,IBakedModel> models
-
-
Constructor Detail
-
ItemModelMesherForge
public ItemModelMesherForge(ModelManager manager)
-
-
Method Detail
-
getItemModel
@Nullable public IBakedModel getItemModel(Item item)
- Overrides:
getItemModel
in classItemModelMesher
-
register
public void register(Item item, ModelResourceLocation location)
- Overrides:
register
in classItemModelMesher
-
rebuildCache
public void rebuildCache()
- Overrides:
rebuildCache
in classItemModelMesher
-
getLocation
public ModelResourceLocation getLocation(@Nonnull ItemStack stack)
-
-