Class ItemModels

java.lang.Object
net.minecraft.client.render.item.ItemModels

@Environment(CLIENT) public class ItemModels extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/item/ItemModels
intermediary net/minecraft/class_763
official gdm
  • Field Details

    • modelIds

      public final Int2ObjectMap<ModelIdentifier> modelIds
      Mappings:
      Namespace Name Mixin selector
      named modelIds Lnet/minecraft/client/render/item/ItemModels;modelIds:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_4129 Lnet/minecraft/class_763;field_4129:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official a Lgdm;a:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • models

      private final Int2ObjectMap<BakedModel> models
      Mappings:
      Namespace Name Mixin selector
      named models Lnet/minecraft/client/render/item/ItemModels;models:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_4130 Lnet/minecraft/class_763;field_4130:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official b Lgdm;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • modelManager

      private final BakedModelManager modelManager
      Mappings:
      Namespace Name Mixin selector
      named modelManager Lnet/minecraft/client/render/item/ItemModels;modelManager:Lnet/minecraft/client/render/model/BakedModelManager;
      intermediary field_4128 Lnet/minecraft/class_763;field_4128:Lnet/minecraft/class_1092;
      official c Lgdm;c:Lgrh;
  • Constructor Details

    • ItemModels

      public ItemModels(BakedModelManager modelManager)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/item/ItemModels;<init>(Lnet/minecraft/client/render/model/BakedModelManager;)V
      intermediary <init> Lnet/minecraft/class_763;<init>(Lnet/minecraft/class_1092;)V
      official <init> Lgdm;<init>(Lgrh;)V
  • Method Details

    • getModel

      public BakedModel getModel(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getModel Lnet/minecraft/client/render/item/ItemModels;getModel(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_3308 Lnet/minecraft/class_763;method_3308(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1087;
      official a Lgdm;a(Lcuq;)Lgrb;
    • getModel

      @Nullable public @Nullable BakedModel getModel(Item item)
      Mappings:
      Namespace Name Mixin selector
      named getModel Lnet/minecraft/client/render/item/ItemModels;getModel(Lnet/minecraft/item/Item;)Lnet/minecraft/client/render/model/BakedModel;
      intermediary method_3304 Lnet/minecraft/class_763;method_3304(Lnet/minecraft/class_1792;)Lnet/minecraft/class_1087;
      official a Lgdm;a(Lcul;)Lgrb;
    • getModelId

      private static int getModelId(Item item)
      Mappings:
      Namespace Name Mixin selector
      named getModelId Lnet/minecraft/client/render/item/ItemModels;getModelId(Lnet/minecraft/item/Item;)I
      intermediary method_3306 Lnet/minecraft/class_763;method_3306(Lnet/minecraft/class_1792;)I
      official b Lgdm;b(Lcul;)I
    • putModel

      public void putModel(Item item, ModelIdentifier modelId)
      Mappings:
      Namespace Name Mixin selector
      named putModel Lnet/minecraft/client/render/item/ItemModels;putModel(Lnet/minecraft/item/Item;Lnet/minecraft/client/util/ModelIdentifier;)V
      intermediary method_3309 Lnet/minecraft/class_763;method_3309(Lnet/minecraft/class_1792;Lnet/minecraft/class_1091;)V
      official a Lgdm;a(Lcul;Lgri;)V
    • getModelManager

      public BakedModelManager getModelManager()
      Mappings:
      Namespace Name Mixin selector
      named getModelManager Lnet/minecraft/client/render/item/ItemModels;getModelManager()Lnet/minecraft/client/render/model/BakedModelManager;
      intermediary method_3303 Lnet/minecraft/class_763;method_3303()Lnet/minecraft/class_1092;
      official a Lgdm;a()Lgrh;
    • reloadModels

      public void reloadModels()
      Mappings:
      Namespace Name Mixin selector
      named reloadModels Lnet/minecraft/client/render/item/ItemModels;reloadModels()V
      intermediary method_3310 Lnet/minecraft/class_763;method_3310()V
      official b Lgdm;b()V