Class RegistryAwareItemModelShaper
java.lang.Object
net.minecraft.client.renderer.ItemModelShaper
net.neoforged.neoforge.client.model.RegistryAwareItemModelShaper
Wrapper around
ItemModelShaper
that cleans up the internal maps to respect ID remapping.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<Item, ModelResourceLocation> private final Map
<Item, BakedModel> Fields inherited from class net.minecraft.client.renderer.ItemModelShaper
shapes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable BakedModel
getItemModel
(Item item) getLocation
(ItemStack stack) void
void
register
(Item item, ModelResourceLocation location) Methods inherited from class net.minecraft.client.renderer.ItemModelShaper
getItemModel, getModelManager
-
Field Details
-
locations
-
models
-
-
Constructor Details
-
RegistryAwareItemModelShaper
-
-
Method Details
-
getItemModel
- Overrides:
getItemModel
in classItemModelShaper
-
register
- Overrides:
register
in classItemModelShaper
-
rebuildCache
public void rebuildCache()- Overrides:
rebuildCache
in classItemModelShaper
-
getLocation
-