Package net.minecraftforge.client.model
Class ForgeItemModelShaper
java.lang.Object
net.minecraft.client.renderer.ItemModelShaper
net.minecraftforge.client.model.ForgeItemModelShaper
Wrapper around
ItemModelShaper
that cleans up the internal maps to respect ID remapping.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Holder.Reference<Item>,
ModelResourceLocation> private final Map<Holder.Reference<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
(@NotNull 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
-
ForgeItemModelShaper
-
-
Method Details
-
getItemModel
- Overrides:
getItemModel
in classItemModelShaper
-
register
- Overrides:
register
in classItemModelShaper
-
rebuildCache
public void rebuildCache()- Overrides:
rebuildCache
in classItemModelShaper
-
getLocation
-