Package net.minecraft.client.render.item
Class ItemModels
java.lang.Object
net.minecraft.client.render.item.ItemModels
@Environment(CLIENT) public class ItemModels extends Object
- Mappings:
Namespace Name official ehn
intermediary net/minecraft/class_763
named net/minecraft/client/render/item/ItemModels
-
Field Summary
Fields Modifier and Type Field Description Int2ObjectMap<ModelIdentifier>
modelIds
private BakedModelManager
modelManager
private Int2ObjectMap<BakedModel>
models
-
Constructor Summary
Constructors Constructor Description ItemModels(BakedModelManager modelManager)
-
Method Summary
Modifier and Type Method Description BakedModel
getModel(Item item)
BakedModel
getModel(ItemStack stack)
private static int
getModelId(Item item)
BakedModelManager
getModelManager()
Sprite
getSprite(ItemConvertible item)
Sprite
getSprite(ItemStack stack)
void
putModel(Item item, ModelIdentifier modelId)
void
reloadModels()
-
Field Details
-
modelIds
- Mappings:
Namespace Name Mixin selector official a
Lehn;a:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_4129
Lnet/minecraft/class_763;field_4129:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named modelIds
Lnet/minecraft/client/render/item/ItemModels;modelIds:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
models
- Mappings:
Namespace Name Mixin selector official b
Lehn;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_4130
Lnet/minecraft/class_763;field_4130:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named models
Lnet/minecraft/client/render/item/ItemModels;models:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
modelManager
- Mappings:
Namespace Name Mixin selector official c
Lehn;c:Letl;
intermediary field_4128
Lnet/minecraft/class_763;field_4128:Lnet/minecraft/class_1092;
named modelManager
Lnet/minecraft/client/render/item/ItemModels;modelManager:Lnet/minecraft/client/render/model/BakedModelManager;
-
-
Constructor Details
-
ItemModels
- Mappings:
Namespace Name Mixin selector official <init>
Lehn;<init>(Letl;)V
intermediary <init>
Lnet/minecraft/class_763;<init>(Lnet/minecraft/class_1092;)V
named <init>
Lnet/minecraft/client/render/item/ItemModels;<init>(Lnet/minecraft/client/render/model/BakedModelManager;)V
-
-
Method Details
-
getSprite
- Mappings:
Namespace Name Mixin selector official a
Lehn;a(Lbtu;)Leru;
intermediary method_3307
Lnet/minecraft/class_763;method_3307(Lnet/minecraft/class_1935;)Lnet/minecraft/class_1058;
named getSprite
Lnet/minecraft/client/render/item/ItemModels;getSprite(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/client/texture/Sprite;
-
getSprite
- Mappings:
Namespace Name Mixin selector official a
Lehn;a(Lbnv;)Leru;
intermediary method_3305
Lnet/minecraft/class_763;method_3305(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1058;
named getSprite
Lnet/minecraft/client/render/item/ItemModels;getSprite(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/client/texture/Sprite;
-
getModel
- Mappings:
Namespace Name Mixin selector official b
Lehn;b(Lbnv;)Letg;
intermediary method_3308
Lnet/minecraft/class_763;method_3308(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1087;
named getModel
Lnet/minecraft/client/render/item/ItemModels;getModel(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/client/render/model/BakedModel;
-
getModel
- Mappings:
Namespace Name Mixin selector official a
Lehn;a(Lbnr;)Letg;
intermediary method_3304
Lnet/minecraft/class_763;method_3304(Lnet/minecraft/class_1792;)Lnet/minecraft/class_1087;
named getModel
Lnet/minecraft/client/render/item/ItemModels;getModel(Lnet/minecraft/item/Item;)Lnet/minecraft/client/render/model/BakedModel;
-
getModelId
- Mappings:
Namespace Name Mixin selector official b
Lehn;b(Lbnr;)I
intermediary method_3306
Lnet/minecraft/class_763;method_3306(Lnet/minecraft/class_1792;)I
named getModelId
Lnet/minecraft/client/render/item/ItemModels;getModelId(Lnet/minecraft/item/Item;)I
-
putModel
- Mappings:
Namespace Name Mixin selector official a
Lehn;a(Lbnr;Letm;)V
intermediary method_3309
Lnet/minecraft/class_763;method_3309(Lnet/minecraft/class_1792;Lnet/minecraft/class_1091;)V
named putModel
Lnet/minecraft/client/render/item/ItemModels;putModel(Lnet/minecraft/item/Item;Lnet/minecraft/client/util/ModelIdentifier;)V
-
getModelManager
- Mappings:
Namespace Name Mixin selector official a
Lehn;a()Letl;
intermediary method_3303
Lnet/minecraft/class_763;method_3303()Lnet/minecraft/class_1092;
named getModelManager
Lnet/minecraft/client/render/item/ItemModels;getModelManager()Lnet/minecraft/client/render/model/BakedModelManager;
-
reloadModels
public void reloadModels()- Mappings:
Namespace Name Mixin selector official b
Lehn;b()V
intermediary method_3310
Lnet/minecraft/class_763;method_3310()V
named reloadModels
Lnet/minecraft/client/render/item/ItemModels;reloadModels()V
-