Class ModelLoader
java.lang.Object
net.minecraft.client.render.model.ModelLoader
- Mappings:
Namespace Name named net/minecraft/client/render/model/ModelLoader
intermediary net/minecraft/class_1088
official gss
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private class
static interface
-
Field Summary
Modifier and TypeFieldDescription(package private) final Map
<ModelLoader.BakedModelCacheKey, BakedModel> private final Map
<ModelIdentifier, BakedModel> static final SpriteIdentifier
static final List
<RenderLayer> static final List
<Identifier> static final List
<Identifier> static final JsonUnbakedModel
private static final String
private static final String
private static final String
static final int
static final SpriteIdentifier
static final SpriteIdentifier
static final JsonUnbakedModel
(package private) static final ItemModelGenerator
private final Map
<Identifier, JsonUnbakedModel> static final SpriteIdentifier
private static final Logger
private static final String
static final String
static final Identifier
static final ModelIdentifier
private final UnbakedModel
static final ResourceFinder
private final Map
<ModelIdentifier, UnbakedModel> private final Set
<Identifier> static final SpriteIdentifier
static final SpriteIdentifier
private final Object2IntMap
<BlockState> private final Map
<Identifier, UnbakedModel> static final SpriteIdentifier
static final SpriteIdentifier
-
Constructor Summary
ConstructorDescriptionModelLoader
(BlockColors blockColors, Profiler profiler, Map<Identifier, JsonUnbakedModel> jsonUnbakedModels, Map<Identifier, List<BlockStatesLoader.SourceTrackedData>> blockStates) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
add
(ModelIdentifier id, UnbakedModel model) private void
addModelToBake
(ModelIdentifier id, UnbakedModel model) void
bake
(ModelLoader.SpriteGetter spliteGetter) (package private) UnbakedModel
private void
private void
private JsonUnbakedModel
-
Field Details
-
FIRE_0
- Mappings:
Namespace Name Mixin selector named FIRE_0
Lnet/minecraft/client/render/model/ModelLoader;FIRE_0:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_5397
Lnet/minecraft/class_1088;field_5397:Lnet/minecraft/class_4730;
official a
Lgss;a:Lgsq;
-
FIRE_1
- Mappings:
Namespace Name Mixin selector named FIRE_1
Lnet/minecraft/client/render/model/ModelLoader;FIRE_1:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_5370
Lnet/minecraft/class_1088;field_5370:Lnet/minecraft/class_4730;
official b
Lgss;b:Lgsq;
-
LAVA_FLOW
- Mappings:
Namespace Name Mixin selector named LAVA_FLOW
Lnet/minecraft/client/render/model/ModelLoader;LAVA_FLOW:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_5381
Lnet/minecraft/class_1088;field_5381:Lnet/minecraft/class_4730;
official c
Lgss;c:Lgsq;
-
WATER_FLOW
- Mappings:
Namespace Name Mixin selector named WATER_FLOW
Lnet/minecraft/client/render/model/ModelLoader;WATER_FLOW:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_5391
Lnet/minecraft/class_1088;field_5391:Lnet/minecraft/class_4730;
official d
Lgss;d:Lgsq;
-
WATER_OVERLAY
- Mappings:
Namespace Name Mixin selector named WATER_OVERLAY
Lnet/minecraft/client/render/model/ModelLoader;WATER_OVERLAY:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_5388
Lnet/minecraft/class_1088;field_5388:Lnet/minecraft/class_4730;
official e
Lgss;e:Lgsq;
-
BANNER_BASE
- Mappings:
Namespace Name Mixin selector named BANNER_BASE
Lnet/minecraft/client/render/model/ModelLoader;BANNER_BASE:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_20847
Lnet/minecraft/class_1088;field_20847:Lnet/minecraft/class_4730;
official f
Lgss;f:Lgsq;
-
SHIELD_BASE
- Mappings:
Namespace Name Mixin selector named SHIELD_BASE
Lnet/minecraft/client/render/model/ModelLoader;SHIELD_BASE:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_21557
Lnet/minecraft/class_1088;field_21557:Lnet/minecraft/class_4730;
official g
Lgss;g:Lgsq;
-
SHIELD_BASE_NO_PATTERN
- Mappings:
Namespace Name Mixin selector named SHIELD_BASE_NO_PATTERN
Lnet/minecraft/client/render/model/ModelLoader;SHIELD_BASE_NO_PATTERN:Lnet/minecraft/client/util/SpriteIdentifier;
intermediary field_21558
Lnet/minecraft/class_1088;field_21558:Lnet/minecraft/class_4730;
official h
Lgss;h:Lgsq;
-
field_32983
public static final int field_32983- See Also:
- Mappings:
Namespace Name Mixin selector named field_32983
Lnet/minecraft/client/render/model/ModelLoader;field_32983:I
intermediary field_32983
Lnet/minecraft/class_1088;field_32983:I
official i
Lgss;i:I
-
BLOCK_DESTRUCTION_STAGES
- Mappings:
Namespace Name Mixin selector named BLOCK_DESTRUCTION_STAGES
Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_STAGES:Ljava/util/List;
intermediary field_20848
Lnet/minecraft/class_1088;field_20848:Ljava/util/List;
official j
Lgss;j:Ljava/util/List;
-
BLOCK_DESTRUCTION_STAGE_TEXTURES
- Mappings:
Namespace Name Mixin selector named BLOCK_DESTRUCTION_STAGE_TEXTURES
Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_STAGE_TEXTURES:Ljava/util/List;
intermediary field_21020
Lnet/minecraft/class_1088;field_21020:Ljava/util/List;
official k
Lgss;k:Ljava/util/List;
-
BLOCK_DESTRUCTION_RENDER_LAYERS
- Mappings:
Namespace Name Mixin selector named BLOCK_DESTRUCTION_RENDER_LAYERS
Lnet/minecraft/client/render/model/ModelLoader;BLOCK_DESTRUCTION_RENDER_LAYERS:Ljava/util/List;
intermediary field_21772
Lnet/minecraft/class_1088;field_21772:Ljava/util/List;
official l
Lgss;l:Ljava/util/List;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/render/model/ModelLoader;LOGGER:Lorg/slf4j/Logger;
intermediary field_5380
Lnet/minecraft/class_1088;field_5380:Lorg/slf4j/Logger;
official s
Lgss;s:Lorg/slf4j/Logger;
-
BUILTIN
- See Also:
- Mappings:
Namespace Name Mixin selector named BUILTIN
Lnet/minecraft/client/render/model/ModelLoader;BUILTIN:Ljava/lang/String;
intermediary field_32986
Lnet/minecraft/class_1088;field_32986:Ljava/lang/String;
official t
Lgss;t:Ljava/lang/String;
-
BUILTIN_GENERATED
- See Also:
- Mappings:
Namespace Name Mixin selector named BUILTIN_GENERATED
Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_GENERATED:Ljava/lang/String;
intermediary field_32987
Lnet/minecraft/class_1088;field_32987:Ljava/lang/String;
official u
Lgss;u:Ljava/lang/String;
-
BUILTIN_ENTITY
- See Also:
- Mappings:
Namespace Name Mixin selector named BUILTIN_ENTITY
Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_ENTITY:Ljava/lang/String;
intermediary field_32988
Lnet/minecraft/class_1088;field_32988:Ljava/lang/String;
official v
Lgss;v:Ljava/lang/String;
-
MISSING
- See Also:
- Mappings:
Namespace Name Mixin selector named MISSING
Lnet/minecraft/client/render/model/ModelLoader;MISSING:Ljava/lang/String;
intermediary field_32989
Lnet/minecraft/class_1088;field_32989:Ljava/lang/String;
official w
Lgss;w:Ljava/lang/String;
-
MISSING_ID
- Mappings:
Namespace Name Mixin selector named MISSING_ID
Lnet/minecraft/client/render/model/ModelLoader;MISSING_ID:Lnet/minecraft/util/Identifier;
intermediary field_5374
Lnet/minecraft/class_1088;field_5374:Lnet/minecraft/class_2960;
official m
Lgss;m:Lakr;
-
MISSING_MODEL_ID
- Mappings:
Namespace Name Mixin selector named MISSING_MODEL_ID
Lnet/minecraft/client/render/model/ModelLoader;MISSING_MODEL_ID:Lnet/minecraft/client/util/ModelIdentifier;
intermediary field_52276
Lnet/minecraft/class_1088;field_52276:Lnet/minecraft/class_1091;
official n
Lgss;n:Lgsu;
-
MODELS_FINDER
- Mappings:
Namespace Name Mixin selector named MODELS_FINDER
Lnet/minecraft/client/render/model/ModelLoader;MODELS_FINDER:Lnet/minecraft/resource/ResourceFinder;
intermediary field_40570
Lnet/minecraft/class_1088;field_40570:Lnet/minecraft/class_7654;
official o
Lgss;o:Lakk;
-
MISSING_DEFINITION
- Mappings:
Namespace Name Mixin selector named MISSING_DEFINITION
Lnet/minecraft/client/render/model/ModelLoader;MISSING_DEFINITION:Ljava/lang/String;
intermediary field_5371
Lnet/minecraft/class_1088;field_5371:Ljava/lang/String;
official p
Lgss;p:Ljava/lang/String;
-
BUILTIN_MODEL_DEFINITIONS
- Mappings:
Namespace Name Mixin selector named BUILTIN_MODEL_DEFINITIONS
Lnet/minecraft/client/render/model/ModelLoader;BUILTIN_MODEL_DEFINITIONS:Ljava/util/Map;
intermediary field_5396
Lnet/minecraft/class_1088;field_5396:Ljava/util/Map;
official x
Lgss;x:Ljava/util/Map;
-
GENERATION_MARKER
- Mappings:
Namespace Name Mixin selector named GENERATION_MARKER
Lnet/minecraft/client/render/model/ModelLoader;GENERATION_MARKER:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary field_5400
Lnet/minecraft/class_1088;field_5400:Lnet/minecraft/class_793;
official q
Lgss;q:Lggb;
-
BLOCK_ENTITY_MARKER
- Mappings:
Namespace Name Mixin selector named BLOCK_ENTITY_MARKER
Lnet/minecraft/client/render/model/ModelLoader;BLOCK_ENTITY_MARKER:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary field_5389
Lnet/minecraft/class_1088;field_5389:Lnet/minecraft/class_793;
official r
Lgss;r:Lggb;
-
ITEM_MODEL_GENERATOR
- Mappings:
Namespace Name Mixin selector named ITEM_MODEL_GENERATOR
Lnet/minecraft/client/render/model/ModelLoader;ITEM_MODEL_GENERATOR:Lnet/minecraft/client/render/model/json/ItemModelGenerator;
intermediary field_5384
Lnet/minecraft/class_1088;field_5384:Lnet/minecraft/class_801;
official y
Lgss;y:Lgge;
-
jsonUnbakedModels
- Mappings:
Namespace Name Mixin selector named jsonUnbakedModels
Lnet/minecraft/client/render/model/ModelLoader;jsonUnbakedModels:Ljava/util/Map;
intermediary field_40567
Lnet/minecraft/class_1088;field_40567:Ljava/util/Map;
official z
Lgss;z:Ljava/util/Map;
-
modelsToLoad
- Mappings:
Namespace Name Mixin selector named modelsToLoad
Lnet/minecraft/client/render/model/ModelLoader;modelsToLoad:Ljava/util/Set;
intermediary field_5390
Lnet/minecraft/class_1088;field_5390:Ljava/util/Set;
official A
Lgss;A:Ljava/util/Set;
-
unbakedModels
- Mappings:
Namespace Name Mixin selector named unbakedModels
Lnet/minecraft/client/render/model/ModelLoader;unbakedModels:Ljava/util/Map;
intermediary field_5376
Lnet/minecraft/class_1088;field_5376:Ljava/util/Map;
official B
Lgss;B:Ljava/util/Map;
-
bakedModelCache
- Mappings:
Namespace Name Mixin selector named bakedModelCache
Lnet/minecraft/client/render/model/ModelLoader;bakedModelCache:Ljava/util/Map;
intermediary field_5398
Lnet/minecraft/class_1088;field_5398:Ljava/util/Map;
official C
Lgss;C:Ljava/util/Map;
-
modelsToBake
- Mappings:
Namespace Name Mixin selector named modelsToBake
Lnet/minecraft/client/render/model/ModelLoader;modelsToBake:Ljava/util/Map;
intermediary field_5394
Lnet/minecraft/class_1088;field_5394:Ljava/util/Map;
official D
Lgss;D:Ljava/util/Map;
-
bakedModels
- Mappings:
Namespace Name Mixin selector named bakedModels
Lnet/minecraft/client/render/model/ModelLoader;bakedModels:Ljava/util/Map;
intermediary field_5387
Lnet/minecraft/class_1088;field_5387:Ljava/util/Map;
official E
Lgss;E:Ljava/util/Map;
-
missingModel
- Mappings:
Namespace Name Mixin selector named missingModel
Lnet/minecraft/client/render/model/ModelLoader;missingModel:Lnet/minecraft/client/render/model/UnbakedModel;
intermediary field_52275
Lnet/minecraft/class_1088;field_52275:Lnet/minecraft/class_1100;
official F
Lgss;F:Lgsy;
-
stateLookup
- Mappings:
Namespace Name Mixin selector named stateLookup
Lnet/minecraft/client/render/model/ModelLoader;stateLookup:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_20274
Lnet/minecraft/class_1088;field_20274:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official G
Lgss;G:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
ModelLoader
public ModelLoader(BlockColors blockColors, Profiler profiler, Map<Identifier, JsonUnbakedModel> jsonUnbakedModels, Map<Identifier, List<BlockStatesLoader.SourceTrackedData>> blockStates) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/model/ModelLoader;<init>(Lnet/minecraft/client/color/block/BlockColors;Lnet/minecraft/util/profiler/Profiler;Ljava/util/Map;Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_1088;<init>(Lnet/minecraft/class_324;Lnet/minecraft/class_3695;Ljava/util/Map;Ljava/util/Map;)V
official <init>
Lgss;<init>(Lfhq;Lbnf;Ljava/util/Map;Ljava/util/Map;)V
-
-
Method Details
-
bake
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/ModelLoader;bake(Lnet/minecraft/client/render/model/ModelLoader$SpriteGetter;)V
intermediary method_45876
Lnet/minecraft/class_1088;method_45876(Lnet/minecraft/class_1088$class_9826;)V
official a
Lgss;a(Lgss$c;)V
-
getOrLoadModel
- Mappings:
Namespace Name Mixin selector named getOrLoadModel
Lnet/minecraft/client/render/model/ModelLoader;getOrLoadModel(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/UnbakedModel;
intermediary method_4726
Lnet/minecraft/class_1088;method_4726(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1100;
official a
Lgss;a(Lakr;)Lgsy;
-
loadInventoryVariantItemModel
- Mappings:
Namespace Name Mixin selector named loadInventoryVariantItemModel
Lnet/minecraft/client/render/model/ModelLoader;loadInventoryVariantItemModel(Lnet/minecraft/util/Identifier;)V
intermediary method_61075
Lnet/minecraft/class_1088;method_61075(Lnet/minecraft/class_2960;)V
official b
Lgss;b(Lakr;)V
-
loadItemModel
- Mappings:
Namespace Name Mixin selector named loadItemModel
Lnet/minecraft/client/render/model/ModelLoader;loadItemModel(Lnet/minecraft/client/util/ModelIdentifier;)V
intermediary method_61073
Lnet/minecraft/class_1088;method_61073(Lnet/minecraft/class_1091;)V
official a
Lgss;a(Lgsu;)V
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/client/render/model/ModelLoader;add(Lnet/minecraft/client/util/ModelIdentifier;Lnet/minecraft/client/render/model/UnbakedModel;)V
intermediary method_61074
Lnet/minecraft/class_1088;method_61074(Lnet/minecraft/class_1091;Lnet/minecraft/class_1100;)V
official a
Lgss;a(Lgsu;Lgsy;)V
-
addModelToBake
- Mappings:
Namespace Name Mixin selector named addModelToBake
Lnet/minecraft/client/render/model/ModelLoader;addModelToBake(Lnet/minecraft/client/util/ModelIdentifier;Lnet/minecraft/client/render/model/UnbakedModel;)V
intermediary method_61076
Lnet/minecraft/class_1088;method_61076(Lnet/minecraft/class_1091;Lnet/minecraft/class_1100;)V
official b
Lgss;b(Lgsu;Lgsy;)V
-
loadModelFromJson
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named loadModelFromJson
Lnet/minecraft/client/render/model/ModelLoader;loadModelFromJson(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary method_4718
Lnet/minecraft/class_1088;method_4718(Lnet/minecraft/class_2960;)Lnet/minecraft/class_793;
official c
Lgss;c(Lakr;)Lggb;
-
getBakedModelMap
- Mappings:
Namespace Name Mixin selector named getBakedModelMap
Lnet/minecraft/client/render/model/ModelLoader;getBakedModelMap()Ljava/util/Map;
intermediary method_4734
Lnet/minecraft/class_1088;method_4734()Ljava/util/Map;
official a
Lgss;a()Ljava/util/Map;
-
getStateLookup
- Mappings:
Namespace Name Mixin selector named getStateLookup
Lnet/minecraft/client/render/model/ModelLoader;getStateLookup()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary method_21605
Lnet/minecraft/class_1088;method_21605()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official b
Lgss;b()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-