Class ItemModelShaper

java.lang.Object
net.minecraft.client.renderer.ItemModelShaper
Direct Known Subclasses:
ItemModelMesherForge

public class ItemModelShaper extends Object
  • Field Details

    • shapes

      public final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ModelResourceLocation> shapes
    • shapesCache

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BakedModel> shapesCache
    • modelManager

      private final ModelManager modelManager
  • Constructor Details

    • ItemModelShaper

      public ItemModelShaper(ModelManager p_109392_)
  • Method Details

    • getItemModel

      public BakedModel getItemModel(ItemStack p_109407_)
    • getItemModel

      @Nullable public BakedModel getItemModel(Item p_109395_)
    • getIndex

      private static int getIndex(Item p_109405_)
    • register

      public void register(Item p_109397_, ModelResourceLocation p_109398_)
    • getModelManager

      public ModelManager getModelManager()
    • rebuildCache

      public void rebuildCache()