Class JsonUnbakedModel
java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel
- All Implemented Interfaces:
UnbakedModel
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/JsonUnbakedModel
intermediary net/minecraft/class_793
official ger
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
An unused unchecked exception. -
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ModelElement> private static final boolean
(package private) static final Gson
private final @Nullable JsonUnbakedModel.GuiLight
private static final Logger
private final List
<ModelOverride> protected @Nullable JsonUnbakedModel
protected @Nullable Identifier
static final String
private static final BakedQuadFactory
private static final char
The initial character ('#') of a texture reference in JSON; used to distinguish texture references from other references.protected final Map
<String, com.mojang.datafixers.util.Either<SpriteIdentifier, String>> private final ModelTransformation
-
Constructor Summary
ConstructorDescriptionJsonUnbakedModel
(@Nullable Identifier parentId, List<ModelElement> elements, Map<String, com.mojang.datafixers.util.Either<SpriteIdentifier, String>> textureMap, @Nullable Boolean ambientOcclusion, @Nullable JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides) -
Method Summary
Modifier and TypeMethodDescriptionbake
(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) bake
(Baker baker, JsonUnbakedModel parent, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth) private ModelOverrideList
compileOverrides
(Baker baker, JsonUnbakedModel parent) private static BakedQuad
createQuad
(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings, Identifier id) static JsonUnbakedModel
deserialize
(Reader input) static JsonUnbakedModel
deserialize
(String json) private Transformation
getTransformation
(ModelTransformationMode renderMode) (package private) static boolean
isTextureReference
(String reference) boolean
resolveSprite
(String spriteName) private com.mojang.datafixers.util.Either
<SpriteIdentifier, String> resolveTexture
(String name) void
setParents
(Function<Identifier, UnbakedModel> modelLoader) boolean
textureExists
(String name) toString()
boolean
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/slf4j/Logger;
intermediary field_4248
Lnet/minecraft/class_793;field_4248:Lorg/slf4j/Logger;
official g
Lger;g:Lorg/slf4j/Logger;
-
QUAD_FACTORY
- Mappings:
Namespace Name Mixin selector named QUAD_FACTORY
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;QUAD_FACTORY:Lnet/minecraft/client/render/model/BakedQuadFactory;
intermediary field_4249
Lnet/minecraft/class_793;field_4249:Lnet/minecraft/class_796;
official h
Lger;h:Lget;
-
GSON
- Mappings:
Namespace Name Mixin selector named GSON
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON:Lcom/google/gson/Gson;
intermediary field_4254
Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
official a
Lger;a:Lcom/google/gson/Gson;
-
TEXTURE_REFERENCE_INITIAL
private static final char TEXTURE_REFERENCE_INITIALThe initial character ('#') of a texture reference in JSON; used to distinguish texture references from other references.- See Also:
- Mappings:
Namespace Name Mixin selector named TEXTURE_REFERENCE_INITIAL
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;TEXTURE_REFERENCE_INITIAL:C
intermediary field_32793
Lnet/minecraft/class_793;field_32793:C
official i
Lger;i:C
-
PARTICLE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named PARTICLE_KEY
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;PARTICLE_KEY:Ljava/lang/String;
intermediary field_32792
Lnet/minecraft/class_793;field_32792:Ljava/lang/String;
official b
Lger;b:Ljava/lang/String;
-
field_42912
private static final boolean field_42912- See Also:
- Mappings:
Namespace Name Mixin selector named field_42912
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;field_42912:Z
intermediary field_42912
Lnet/minecraft/class_793;field_42912:Z
official j
Lger;j:Z
-
elements
- Mappings:
Namespace Name Mixin selector named elements
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;elements:Ljava/util/List;
intermediary field_4245
Lnet/minecraft/class_793;field_4245:Ljava/util/List;
official k
Lger;k:Ljava/util/List;
-
guiLight
- Mappings:
Namespace Name Mixin selector named guiLight
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;guiLight:Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
intermediary field_21857
Lnet/minecraft/class_793;field_21857:Lnet/minecraft/class_793$class_4751;
official l
Lger;l:Lger$b;
-
ambientOcclusion
- Mappings:
Namespace Name Mixin selector named ambientOcclusion
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;ambientOcclusion:Ljava/lang/Boolean;
intermediary field_4244
Lnet/minecraft/class_793;field_4244:Ljava/lang/Boolean;
official m
Lger;m:Ljava/lang/Boolean;
-
transformations
- Mappings:
Namespace Name Mixin selector named transformations
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;transformations:Lnet/minecraft/client/render/model/json/ModelTransformation;
intermediary field_4250
Lnet/minecraft/class_793;field_4250:Lnet/minecraft/class_809;
official n
Lger;n:Lgey;
-
overrides
- Mappings:
Namespace Name Mixin selector named overrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;overrides:Ljava/util/List;
intermediary field_4255
Lnet/minecraft/class_793;field_4255:Ljava/util/List;
official o
Lger;o:Ljava/util/List;
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;id:Ljava/lang/String;
intermediary field_4252
Lnet/minecraft/class_793;field_4252:Ljava/lang/String;
official c
Lger;c:Ljava/lang/String;
-
textureMap
- Mappings:
Namespace Name Mixin selector named textureMap
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureMap:Ljava/util/Map;
intermediary field_4251
Lnet/minecraft/class_793;field_4251:Ljava/util/Map;
official d
Lger;d:Ljava/util/Map;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parent:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary field_4253
Lnet/minecraft/class_793;field_4253:Lnet/minecraft/class_793;
official e
Lger;e:Lger;
-
parentId
- Mappings:
Namespace Name Mixin selector named parentId
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parentId:Lnet/minecraft/util/Identifier;
intermediary field_4247
Lnet/minecraft/class_793;field_4247:Lnet/minecraft/class_2960;
official f
Lger;f:Lalf;
-
-
Constructor Details
-
JsonUnbakedModel
public JsonUnbakedModel(@Nullable @Nullable Identifier parentId, List<ModelElement> elements, Map<String, com.mojang.datafixers.util.Either<SpriteIdentifier, String>> textureMap, @Nullable @Nullable Boolean ambientOcclusion, @Nullable @Nullable JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;<init>(Lnet/minecraft/util/Identifier;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;Lnet/minecraft/client/render/model/json/ModelTransformation;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_793;<init>(Lnet/minecraft/class_2960;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lnet/minecraft/class_793$class_4751;Lnet/minecraft/class_809;Ljava/util/List;)V
official <init>
Lger;<init>(Lalf;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lger$b;Lgey;Ljava/util/List;)V
-
-
Method Details
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary method_3437
Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;
official a
Lger;a(Ljava/io/Reader;)Lger;
-
deserialize
- Mappings:
Namespace Name Mixin selector named deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary method_3430
Lnet/minecraft/class_793;method_3430(Ljava/lang/String;)Lnet/minecraft/class_793;
official a
Lger;a(Ljava/lang/String;)Lger;
-
getElements
- Mappings:
Namespace Name Mixin selector named getElements
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getElements()Ljava/util/List;
intermediary method_3433
Lnet/minecraft/class_793;method_3433()Ljava/util/List;
official a
Lger;a()Ljava/util/List;
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Mappings:
Namespace Name Mixin selector named useAmbientOcclusion
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;useAmbientOcclusion()Z
intermediary method_3444
Lnet/minecraft/class_793;method_3444()Z
official b
Lger;b()Z
-
getGuiLight
- Mappings:
Namespace Name Mixin selector named getGuiLight
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getGuiLight()Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
intermediary method_24298
Lnet/minecraft/class_793;method_24298()Lnet/minecraft/class_793$class_4751;
official c
Lger;c()Lger$b;
-
needsResolution
public boolean needsResolution()- Mappings:
Namespace Name Mixin selector named needsResolution
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;needsResolution()Z
intermediary method_35789
Lnet/minecraft/class_793;method_35789()Z
official d
Lger;d()Z
-
getOverrides
- Mappings:
Namespace Name Mixin selector named getOverrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getOverrides()Ljava/util/List;
intermediary method_3434
Lnet/minecraft/class_793;method_3434()Ljava/util/List;
official e
Lger;e()Ljava/util/List;
-
compileOverrides
- Mappings:
Namespace Name Mixin selector named compileOverrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;compileOverrides(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/json/JsonUnbakedModel;)Lnet/minecraft/client/render/model/json/ModelOverrideList;
intermediary method_3440
Lnet/minecraft/class_793;method_3440(Lnet/minecraft/class_7775;Lnet/minecraft/class_793;)Lnet/minecraft/class_806;
official a
Lger;a(Lgrf;Lger;)Lgew;
-
getModelDependencies
- Specified by:
getModelDependencies
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector named getModelDependencies
Lnet/minecraft/client/render/model/UnbakedModel;getModelDependencies()Ljava/util/Collection;
intermediary method_4755
Lnet/minecraft/class_1100;method_4755()Ljava/util/Collection;
official f
Lgrm;f()Ljava/util/Collection;
-
setParents
- Specified by:
setParents
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector named setParents
Lnet/minecraft/client/render/model/UnbakedModel;setParents(Ljava/util/function/Function;)V
intermediary method_45785
Lnet/minecraft/class_1100;method_45785(Ljava/util/function/Function;)V
official a
Lgrm;a(Ljava/util/function/Function;)V
-
bake
public BakedModel bake(Baker baker, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) - Specified by:
bake
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/UnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;
intermediary method_4753
Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_7775;Ljava/util/function/Function;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;)Lnet/minecraft/class_1087;
official a
Lgrm;a(Lgrf;Ljava/util/function/Function;Lgrj;Lalf;)Lgrb;
-
bake
public BakedModel bake(Baker baker, JsonUnbakedModel parent, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth) - Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;bake(Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/json/JsonUnbakedModel;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;Z)Lnet/minecraft/client/render/model/BakedModel;
intermediary method_3446
Lnet/minecraft/class_793;method_3446(Lnet/minecraft/class_7775;Lnet/minecraft/class_793;Ljava/util/function/Function;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;Z)Lnet/minecraft/class_1087;
official a
Lger;a(Lgrf;Lger;Ljava/util/function/Function;Lgrj;Lalf;Z)Lgrb;
-
createQuad
private static BakedQuad createQuad(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings, Identifier id) - Mappings:
Namespace Name Mixin selector named createQuad
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;createQuad(Lnet/minecraft/client/render/model/json/ModelElement;Lnet/minecraft/client/render/model/json/ModelElementFace;Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/util/math/Direction;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedQuad;
intermediary method_3447
Lnet/minecraft/class_793;method_3447(Lnet/minecraft/class_785;Lnet/minecraft/class_783;Lnet/minecraft/class_1058;Lnet/minecraft/class_2350;Lnet/minecraft/class_3665;Lnet/minecraft/class_2960;)Lnet/minecraft/class_777;
official a
Lger;a(Lgen;Lgeo;Lgpa;Lje;Lgrj;Lalf;)Lgem;
-
textureExists
- Mappings:
Namespace Name Mixin selector named textureExists
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureExists(Ljava/lang/String;)Z
intermediary method_3432
Lnet/minecraft/class_793;method_3432(Ljava/lang/String;)Z
official b
Lger;b(Ljava/lang/String;)Z
-
resolveSprite
- Mappings:
Namespace Name Mixin selector named resolveSprite
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveSprite(Ljava/lang/String;)Lnet/minecraft/client/util/SpriteIdentifier;
intermediary method_24077
Lnet/minecraft/class_793;method_24077(Ljava/lang/String;)Lnet/minecraft/class_4730;
official c
Lger;c(Ljava/lang/String;)Lgre;
-
resolveTexture
- Mappings:
Namespace Name Mixin selector named resolveTexture
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveTexture(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
intermediary method_3442
Lnet/minecraft/class_793;method_3442(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
official d
Lger;d(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
-
isTextureReference
- Mappings:
Namespace Name Mixin selector named isTextureReference
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;isTextureReference(Ljava/lang/String;)Z
intermediary method_3439
Lnet/minecraft/class_793;method_3439(Ljava/lang/String;)Z
official e
Lger;e(Ljava/lang/String;)Z
-
getRootModel
- Mappings:
Namespace Name Mixin selector named getRootModel
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getRootModel()Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
intermediary method_3431
Lnet/minecraft/class_793;method_3431()Lnet/minecraft/class_793;
official g
Lger;g()Lger;
-
getTransformations
- Mappings:
Namespace Name Mixin selector named getTransformations
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformations()Lnet/minecraft/client/render/model/json/ModelTransformation;
intermediary method_3443
Lnet/minecraft/class_793;method_3443()Lnet/minecraft/class_809;
official h
Lger;h()Lgey;
-
getTransformation
- Mappings:
Namespace Name Mixin selector named getTransformation
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformation(Lnet/minecraft/client/render/model/json/ModelTransformationMode;)Lnet/minecraft/client/render/model/json/Transformation;
intermediary method_3438
Lnet/minecraft/class_793;method_3438(Lnet/minecraft/class_811;)Lnet/minecraft/class_804;
official a
Lger;a(Lcun;)Lgex;
-
toString
-