Class JsonUnbakedModel
java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel
- All Implemented Interfaces:
UnbakedModel
- Mappings:
Namespace Name official fjf
intermediary net/minecraft/class_793
named net/minecraft/client/render/model/json/JsonUnbakedModel
-
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 official g
Lfjf;g:Lorg/slf4j/Logger;
intermediary field_4248
Lnet/minecraft/class_793;field_4248:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/slf4j/Logger;
-
QUAD_FACTORY
- Mappings:
Namespace Name Mixin selector official h
Lfjf;h:Lfjh;
intermediary field_4249
Lnet/minecraft/class_793;field_4249:Lnet/minecraft/class_796;
named QUAD_FACTORY
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;QUAD_FACTORY:Lnet/minecraft/client/render/model/BakedQuadFactory;
-
GSON
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a:Lcom/google/gson/Gson;
intermediary field_4254
Lnet/minecraft/class_793;field_4254:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;GSON: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 official i
Lfjf;i:C
intermediary field_32793
Lnet/minecraft/class_793;field_32793:C
named TEXTURE_REFERENCE_INITIAL
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;TEXTURE_REFERENCE_INITIAL:C
-
PARTICLE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lfjf;b:Ljava/lang/String;
intermediary field_32792
Lnet/minecraft/class_793;field_32792:Ljava/lang/String;
named PARTICLE_KEY
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;PARTICLE_KEY:Ljava/lang/String;
-
field_42912
private static final boolean field_42912- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lfjf;j:Z
intermediary field_42912
Lnet/minecraft/class_793;field_42912:Z
named field_42912
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;field_42912:Z
-
elements
- Mappings:
Namespace Name Mixin selector official k
Lfjf;k:Ljava/util/List;
intermediary field_4245
Lnet/minecraft/class_793;field_4245:Ljava/util/List;
named elements
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;elements:Ljava/util/List;
-
guiLight
- Mappings:
Namespace Name Mixin selector official l
Lfjf;l:Lfjf$b;
intermediary field_21857
Lnet/minecraft/class_793;field_21857:Lnet/minecraft/class_793$class_4751;
named guiLight
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;guiLight:Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
-
ambientOcclusion
- Mappings:
Namespace Name Mixin selector official m
Lfjf;m:Ljava/lang/Boolean;
intermediary field_4244
Lnet/minecraft/class_793;field_4244:Ljava/lang/Boolean;
named ambientOcclusion
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;ambientOcclusion:Ljava/lang/Boolean;
-
transformations
- Mappings:
Namespace Name Mixin selector official n
Lfjf;n:Lfjm;
intermediary field_4250
Lnet/minecraft/class_793;field_4250:Lnet/minecraft/class_809;
named transformations
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;transformations:Lnet/minecraft/client/render/model/json/ModelTransformation;
-
overrides
- Mappings:
Namespace Name Mixin selector official o
Lfjf;o:Ljava/util/List;
intermediary field_4255
Lnet/minecraft/class_793;field_4255:Ljava/util/List;
named overrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;overrides:Ljava/util/List;
-
id
- Mappings:
Namespace Name Mixin selector official c
Lfjf;c:Ljava/lang/String;
intermediary field_4252
Lnet/minecraft/class_793;field_4252:Ljava/lang/String;
named id
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;id:Ljava/lang/String;
-
textureMap
- Mappings:
Namespace Name Mixin selector official d
Lfjf;d:Ljava/util/Map;
intermediary field_4251
Lnet/minecraft/class_793;field_4251:Ljava/util/Map;
named textureMap
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureMap:Ljava/util/Map;
-
parent
- Mappings:
Namespace Name Mixin selector official e
Lfjf;e:Lfjf;
intermediary field_4253
Lnet/minecraft/class_793;field_4253:Lnet/minecraft/class_793;
named parent
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parent:Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
-
parentId
- Mappings:
Namespace Name Mixin selector official f
Lfjf;f:Ladd;
intermediary field_4247
Lnet/minecraft/class_793;field_4247:Lnet/minecraft/class_2960;
named parentId
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;parentId:Lnet/minecraft/util/Identifier;
-
-
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 official <init>
Lfjf;<init>(Ladd;Ljava/util/List;Ljava/util/Map;Ljava/lang/Boolean;Lfjf$b;Lfjm;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
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
-
-
Method Details
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Ljava/io/Reader;)Lfjf;
intermediary method_3437
Lnet/minecraft/class_793;method_3437(Ljava/io/Reader;)Lnet/minecraft/class_793;
named deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/io/Reader;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Ljava/lang/String;)Lfjf;
intermediary method_3430
Lnet/minecraft/class_793;method_3430(Ljava/lang/String;)Lnet/minecraft/class_793;
named deserialize
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;deserialize(Ljava/lang/String;)Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
-
getElements
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a()Ljava/util/List;
intermediary method_3433
Lnet/minecraft/class_793;method_3433()Ljava/util/List;
named getElements
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getElements()Ljava/util/List;
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Mappings:
Namespace Name Mixin selector official b
Lfjf;b()Z
intermediary method_3444
Lnet/minecraft/class_793;method_3444()Z
named useAmbientOcclusion
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;useAmbientOcclusion()Z
-
getGuiLight
- Mappings:
Namespace Name Mixin selector official c
Lfjf;c()Lfjf$b;
intermediary method_24298
Lnet/minecraft/class_793;method_24298()Lnet/minecraft/class_793$class_4751;
named getGuiLight
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getGuiLight()Lnet/minecraft/client/render/model/json/JsonUnbakedModel$GuiLight;
-
needsResolution
public boolean needsResolution()- Mappings:
Namespace Name Mixin selector official d
Lfjf;d()Z
intermediary method_35789
Lnet/minecraft/class_793;method_35789()Z
named needsResolution
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;needsResolution()Z
-
getOverrides
- Mappings:
Namespace Name Mixin selector official e
Lfjf;e()Ljava/util/List;
intermediary method_3434
Lnet/minecraft/class_793;method_3434()Ljava/util/List;
named getOverrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getOverrides()Ljava/util/List;
-
compileOverrides
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Lfvc;Lfjf;)Lfjk;
intermediary method_3440
Lnet/minecraft/class_793;method_3440(Lnet/minecraft/class_7775;Lnet/minecraft/class_793;)Lnet/minecraft/class_806;
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;
-
getModelDependencies
- Specified by:
getModelDependencies
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector official f
Lfvj;f()Ljava/util/Collection;
intermediary method_4755
Lnet/minecraft/class_1100;method_4755()Ljava/util/Collection;
named getModelDependencies
Lnet/minecraft/client/render/model/UnbakedModel;getModelDependencies()Ljava/util/Collection;
-
setParents
- Specified by:
setParents
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector official a
Lfvj;a(Ljava/util/function/Function;)V
intermediary method_45785
Lnet/minecraft/class_1100;method_45785(Ljava/util/function/Function;)V
named setParents
Lnet/minecraft/client/render/model/UnbakedModel;setParents(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 official a
Lfvj;a(Lfvc;Ljava/util/function/Function;Lfvg;Ladd;)Lfuy;
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;
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;
-
bake
public BakedModel bake(Baker baker, JsonUnbakedModel parent, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth) - Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Lfvc;Lfjf;Ljava/util/function/Function;Lfvg;Ladd;Z)Lfuy;
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;
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;
-
createQuad
private static BakedQuad createQuad(ModelElement element, ModelElementFace elementFace, Sprite sprite, Direction side, ModelBakeSettings settings, Identifier id) - Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Lfjb;Lfjc;Lftc;Lgz;Lfvg;Ladd;)Lfja;
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;
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;
-
textureExists
- Mappings:
Namespace Name Mixin selector official b
Lfjf;b(Ljava/lang/String;)Z
intermediary method_3432
Lnet/minecraft/class_793;method_3432(Ljava/lang/String;)Z
named textureExists
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;textureExists(Ljava/lang/String;)Z
-
resolveSprite
- Mappings:
Namespace Name Mixin selector official c
Lfjf;c(Ljava/lang/String;)Lfvb;
intermediary method_24077
Lnet/minecraft/class_793;method_24077(Ljava/lang/String;)Lnet/minecraft/class_4730;
named resolveSprite
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveSprite(Ljava/lang/String;)Lnet/minecraft/client/util/SpriteIdentifier;
-
resolveTexture
- Mappings:
Namespace Name Mixin selector official d
Lfjf;d(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;
named resolveTexture
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;resolveTexture(Ljava/lang/String;)Lcom/mojang/datafixers/util/Either;
-
isTextureReference
- Mappings:
Namespace Name Mixin selector official e
Lfjf;e(Ljava/lang/String;)Z
intermediary method_3439
Lnet/minecraft/class_793;method_3439(Ljava/lang/String;)Z
named isTextureReference
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;isTextureReference(Ljava/lang/String;)Z
-
getRootModel
- Mappings:
Namespace Name Mixin selector official g
Lfjf;g()Lfjf;
intermediary method_3431
Lnet/minecraft/class_793;method_3431()Lnet/minecraft/class_793;
named getRootModel
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getRootModel()Lnet/minecraft/client/render/model/json/JsonUnbakedModel;
-
getTransformations
- Mappings:
Namespace Name Mixin selector official h
Lfjf;h()Lfjm;
intermediary method_3443
Lnet/minecraft/class_793;method_3443()Lnet/minecraft/class_809;
named getTransformations
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformations()Lnet/minecraft/client/render/model/json/ModelTransformation;
-
getTransformation
- Mappings:
Namespace Name Mixin selector official a
Lfjf;a(Lcfs;)Lfjl;
intermediary method_3438
Lnet/minecraft/class_793;method_3438(Lnet/minecraft/class_811;)Lnet/minecraft/class_804;
named getTransformation
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformation(Lnet/minecraft/client/render/model/json/ModelTransformationMode;)Lnet/minecraft/client/render/model/json/Transformation;
-
toString
-