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 grw
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private class
private static class
private static class
static final record
-
Field Summary
Modifier and TypeFieldDescription(package private) final Map
<ModelLoader.BakedModelCacheKey, BakedModel> private final Map
<Identifier, BakedModel> static final SpriteIdentifier
static final List
<RenderLayer> static final List
<Identifier> static final List
<Identifier> static final JsonUnbakedModel
static final ResourceFinder
private final BlockColors
private final Map
<Identifier, List<ModelLoader.SourceTrackedData>> private static final String
private static final String
private static final String
private static final Splitter
static final int
(package private) static final int
private static final int
static final SpriteIdentifier
static final SpriteIdentifier
static final JsonUnbakedModel
private static final StateManager
<Block, BlockState> (package private) static final ItemModelGenerator
private final Map
<Identifier, JsonUnbakedModel> private static final Splitter
static final SpriteIdentifier
private static final Logger
private static final String
static final String
static final ModelIdentifier
static final ResourceFinder
private final Map
<Identifier, UnbakedModel> private final Set
<Identifier> private int
static final SpriteIdentifier
static final SpriteIdentifier
private final Object2IntMap
<BlockState> private static final Map
<Identifier, StateManager<Block, BlockState>> private final Map
<Identifier, UnbakedModel> private final ModelVariantMap.DeserializationContext
static final SpriteIdentifier
static final SpriteIdentifier
-
Constructor Summary
ConstructorDescriptionModelLoader
(BlockColors blockColors, Profiler profiler, Map<Identifier, JsonUnbakedModel> jsonUnbakedModels, Map<Identifier, List<ModelLoader.SourceTrackedData>> blockStates) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addModel
(ModelIdentifier modelId) private void
addStates
(Iterable<BlockState> states) void
bake
(BiFunction<Identifier, SpriteIdentifier, Sprite> spriteLoader) (package private) static <T extends Comparable<T>>
TgetPropertyValue
(Property<T> property, String string) private void
loadModel
(Identifier id) private JsonUnbakedModel
private void
putModel
(Identifier id, UnbakedModel unbakedModel) private static Predicate
<BlockState> stateKeyToPredicate
(StateManager<Block, BlockState> stateFactory, String key)
-
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
Lgrw;a:Lgru;
-
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
Lgrw;b:Lgru;
-
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
Lgrw;c:Lgru;
-
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
Lgrw;d:Lgru;
-
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
Lgrw;e:Lgru;
-
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
Lgrw;f:Lgru;
-
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
Lgrw;g:Lgru;
-
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
Lgrw;h:Lgru;
-
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
Lgrw;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
Lgrw;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
Lgrw;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
Lgrw;l:Ljava/util/List;
-
field_32984
static final int field_32984- See Also:
- Mappings:
Namespace Name Mixin selector named field_32984
Lnet/minecraft/client/render/model/ModelLoader;field_32984:I
intermediary field_32984
Lnet/minecraft/class_1088;field_32984:I
official m
Lgrw;m:I
-
field_32985
private static final int field_32985- See Also:
- Mappings:
Namespace Name Mixin selector named field_32985
Lnet/minecraft/client/render/model/ModelLoader;field_32985:I
intermediary field_32985
Lnet/minecraft/class_1088;field_32985:I
official t
Lgrw;t:I
-
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 u
Lgrw;u: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 v
Lgrw;v: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 w
Lgrw;w: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 x
Lgrw;x: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 y
Lgrw;y:Ljava/lang/String;
-
MISSING_ID
- Mappings:
Namespace Name Mixin selector named MISSING_ID
Lnet/minecraft/client/render/model/ModelLoader;MISSING_ID:Lnet/minecraft/client/util/ModelIdentifier;
intermediary field_5374
Lnet/minecraft/class_1088;field_5374:Lnet/minecraft/class_1091;
official n
Lgrw;n:Lgry;
-
BLOCK_STATES_FINDER
- Mappings:
Namespace Name Mixin selector named BLOCK_STATES_FINDER
Lnet/minecraft/client/render/model/ModelLoader;BLOCK_STATES_FINDER:Lnet/minecraft/resource/ResourceFinder;
intermediary field_40569
Lnet/minecraft/class_1088;field_40569:Lnet/minecraft/class_7654;
official o
Lgrw;o:Lakd;
-
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 p
Lgrw;p:Lakd;
-
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 q
Lgrw;q: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 z
Lgrw;z:Ljava/util/Map;
-
COMMA_SPLITTER
- Mappings:
Namespace Name Mixin selector named COMMA_SPLITTER
Lnet/minecraft/client/render/model/ModelLoader;COMMA_SPLITTER:Lcom/google/common/base/Splitter;
intermediary field_5373
Lnet/minecraft/class_1088;field_5373:Lcom/google/common/base/Splitter;
official A
Lgrw;A:Lcom/google/common/base/Splitter;
-
KEY_VALUE_SPLITTER
- Mappings:
Namespace Name Mixin selector named KEY_VALUE_SPLITTER
Lnet/minecraft/client/render/model/ModelLoader;KEY_VALUE_SPLITTER:Lcom/google/common/base/Splitter;
intermediary field_5372
Lnet/minecraft/class_1088;field_5372:Lcom/google/common/base/Splitter;
official B
Lgrw;B:Lcom/google/common/base/Splitter;
-
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 r
Lgrw;r:Lgfh;
-
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 s
Lgrw;s:Lgfh;
-
ITEM_FRAME_STATE_FACTORY
- Mappings:
Namespace Name Mixin selector named ITEM_FRAME_STATE_FACTORY
Lnet/minecraft/client/render/model/ModelLoader;ITEM_FRAME_STATE_FACTORY:Lnet/minecraft/state/StateManager;
intermediary field_5395
Lnet/minecraft/class_1088;field_5395:Lnet/minecraft/class_2689;
official C
Lgrw;C:Ldsm;
-
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 D
Lgrw;D:Lgfk;
-
STATIC_DEFINITIONS
- Mappings:
Namespace Name Mixin selector named STATIC_DEFINITIONS
Lnet/minecraft/client/render/model/ModelLoader;STATIC_DEFINITIONS:Ljava/util/Map;
intermediary field_5383
Lnet/minecraft/class_1088;field_5383:Ljava/util/Map;
official E
Lgrw;E:Ljava/util/Map;
-
blockColors
- Mappings:
Namespace Name Mixin selector named blockColors
Lnet/minecraft/client/render/model/ModelLoader;blockColors:Lnet/minecraft/client/color/block/BlockColors;
intermediary field_20272
Lnet/minecraft/class_1088;field_20272:Lnet/minecraft/class_324;
official F
Lgrw;F:Lfgy;
-
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 G
Lgrw;G:Ljava/util/Map;
-
blockStates
- Mappings:
Namespace Name Mixin selector named blockStates
Lnet/minecraft/client/render/model/ModelLoader;blockStates:Ljava/util/Map;
intermediary field_40568
Lnet/minecraft/class_1088;field_40568:Ljava/util/Map;
official H
Lgrw;H: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 I
Lgrw;I:Ljava/util/Set;
-
variantMapDeserializationContext
- Mappings:
Namespace Name Mixin selector named variantMapDeserializationContext
Lnet/minecraft/client/render/model/ModelLoader;variantMapDeserializationContext:Lnet/minecraft/client/render/model/json/ModelVariantMap$DeserializationContext;
intermediary field_5399
Lnet/minecraft/class_1088;field_5399:Lnet/minecraft/class_790$class_791;
official J
Lgrw;J:Lgfi$a;
-
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 K
Lgrw;K: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 L
Lgrw;L: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 M
Lgrw;M: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 N
Lgrw;N:Ljava/util/Map;
-
nextStateId
private int nextStateId- Mappings:
Namespace Name Mixin selector named nextStateId
Lnet/minecraft/client/render/model/ModelLoader;nextStateId:I
intermediary field_20273
Lnet/minecraft/class_1088;field_20273:I
official O
Lgrw;O:I
-
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 P
Lgrw;P:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
ModelLoader
public ModelLoader(BlockColors blockColors, Profiler profiler, Map<Identifier, JsonUnbakedModel> jsonUnbakedModels, Map<Identifier, List<ModelLoader.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>
Lgrw;<init>(Lfgy;Lbmv;Ljava/util/Map;Ljava/util/Map;)V
-
-
Method Details
-
bake
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/ModelLoader;bake(Ljava/util/function/BiFunction;)V
intermediary method_45876
Lnet/minecraft/class_1088;method_45876(Ljava/util/function/BiFunction;)V
official a
Lgrw;a(Ljava/util/function/BiFunction;)V
-
stateKeyToPredicate
private static Predicate<BlockState> stateKeyToPredicate(StateManager<Block, BlockState> stateFactory, String key) - Mappings:
Namespace Name Mixin selector named stateKeyToPredicate
Lnet/minecraft/client/render/model/ModelLoader;stateKeyToPredicate(Lnet/minecraft/state/StateManager;Ljava/lang/String;)Ljava/util/function/Predicate;
intermediary method_4725
Lnet/minecraft/class_1088;method_4725(Lnet/minecraft/class_2689;Ljava/lang/String;)Ljava/util/function/Predicate;
official a
Lgrw;a(Ldsm;Ljava/lang/String;)Ljava/util/function/Predicate;
-
getPropertyValue
- Mappings:
Namespace Name Mixin selector named getPropertyValue
Lnet/minecraft/client/render/model/ModelLoader;getPropertyValue(Lnet/minecraft/state/property/Property;Ljava/lang/String;)Ljava/lang/Comparable;
intermediary method_4724
Lnet/minecraft/class_1088;method_4724(Lnet/minecraft/class_2769;Ljava/lang/String;)Ljava/lang/Comparable;
official a
Lgrw;a(Ldto;Ljava/lang/String;)Ljava/lang/Comparable;
-
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
Lgrw;a(Lakk;)Lgsc;
-
loadModel
- Throws:
Exception
- Mappings:
Namespace Name Mixin selector named loadModel
Lnet/minecraft/client/render/model/ModelLoader;loadModel(Lnet/minecraft/util/Identifier;)V
intermediary method_4715
Lnet/minecraft/class_1088;method_4715(Lnet/minecraft/class_2960;)V
official b
Lgrw;b(Lakk;)V
-
putModel
- Mappings:
Namespace Name Mixin selector named putModel
Lnet/minecraft/client/render/model/ModelLoader;putModel(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/render/model/UnbakedModel;)V
intermediary method_4729
Lnet/minecraft/class_1088;method_4729(Lnet/minecraft/class_2960;Lnet/minecraft/class_1100;)V
official a
Lgrw;a(Lakk;Lgsc;)V
-
addModel
- Mappings:
Namespace Name Mixin selector named addModel
Lnet/minecraft/client/render/model/ModelLoader;addModel(Lnet/minecraft/client/util/ModelIdentifier;)V
intermediary method_4727
Lnet/minecraft/class_1088;method_4727(Lnet/minecraft/class_1091;)V
official a
Lgrw;a(Lgry;)V
-
addStates
- Mappings:
Namespace Name Mixin selector named addStates
Lnet/minecraft/client/render/model/ModelLoader;addStates(Ljava/lang/Iterable;)V
intermediary method_21603
Lnet/minecraft/class_1088;method_21603(Ljava/lang/Iterable;)V
official a
Lgrw;a(Ljava/lang/Iterable;)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
Lgrw;c(Lakk;)Lgfh;
-
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
Lgrw;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
Lgrw;b()Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-