Class JsonUnbakedModel
java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel
- All Implemented Interfaces:
UnbakedModel
- Mappings:
Namespace Name official eyt
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 boolean
private final List<ModelElement>
(package private) static final Gson
private final @Nullable JsonUnbakedModel.GuiLight
private static final org.slf4j.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, boolean ambientOcclusion, @Nullable JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides) -
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelLoader loader, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) bake
(ModelLoader loader, JsonUnbakedModel parent, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth) private ModelOverrideList
compileOverrides
(ModelLoader modelLoader, 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) getTextureDependencies
(Function<Identifier, UnbakedModel> unbakedModelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> unresolvedTextureReferences) private Transformation
getTransformation
(ModelTransformation.Mode renderMode) (package private) static boolean
isTextureReference
(String reference) boolean
resolveSprite
(String spriteName) private com.mojang.datafixers.util.Either<SpriteIdentifier,
String> resolveTexture
(String name) boolean
textureExists
(String name) toString()
boolean
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official g
Leyt;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
Leyt;h:Leyv;
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
Leyt;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
Leyt;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
Leyt;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;
-
elements
- Mappings:
Namespace Name Mixin selector official j
Leyt;j: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 k
Leyt;k:Leyt$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
private final boolean ambientOcclusion- Mappings:
Namespace Name Mixin selector official l
Leyt;l:Z
intermediary field_4244
Lnet/minecraft/class_793;field_4244:Z
named ambientOcclusion
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;ambientOcclusion:Z
-
transformations
- Mappings:
Namespace Name Mixin selector official m
Leyt;m:Leza;
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 n
Leyt;n: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
Leyt;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
Leyt;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
Leyt;e:Leyt;
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
Leyt;f:Laaj;
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, boolean ambientOcclusion, @Nullable @Nullable JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides) - Mappings:
Namespace Name Mixin selector official <init>
Leyt;<init>(Laaj;Ljava/util/List;Ljava/util/Map;ZLeyt$b;Leza;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_793;<init>(Lnet/minecraft/class_2960;Ljava/util/List;Ljava/util/Map;ZLnet/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;ZLnet/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
Leyt;a(Ljava/io/Reader;)Leyt;
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
Leyt;a(Ljava/lang/String;)Leyt;
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
Leyt;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
Leyt;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
Leyt;c()Leyt$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
Leyt;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
Leyt;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
Leyt;a(Lfjw;Leyt;)Leyy;
intermediary method_3440
Lnet/minecraft/class_793;method_3440(Lnet/minecraft/class_1088;Lnet/minecraft/class_793;)Lnet/minecraft/class_806;
named compileOverrides
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;compileOverrides(Lnet/minecraft/client/render/model/ModelLoader;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
Lfkc;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;
-
getTextureDependencies
public Collection<SpriteIdentifier> getTextureDependencies(Function<Identifier, UnbakedModel> unbakedModelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> unresolvedTextureReferences) - Specified by:
getTextureDependencies
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector official a
Lfkc;a(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
intermediary method_4754
Lnet/minecraft/class_1100;method_4754(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
named getTextureDependencies
Lnet/minecraft/client/render/model/UnbakedModel;getTextureDependencies(Ljava/util/function/Function;Ljava/util/Set;)Ljava/util/Collection;
-
bake
public BakedModel bake(ModelLoader loader, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings rotationContainer, Identifier modelId) - Specified by:
bake
in interfaceUnbakedModel
- Mappings:
Namespace Name Mixin selector official a
Lfkc;a(Lfjw;Ljava/util/function/Function;Lfjz;Laaj;)Lfjs;
intermediary method_4753
Lnet/minecraft/class_1100;method_4753(Lnet/minecraft/class_1088;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/ModelLoader;Ljava/util/function/Function;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedModel;
-
bake
public BakedModel bake(ModelLoader loader, JsonUnbakedModel parent, Function<SpriteIdentifier, Sprite> textureGetter, ModelBakeSettings settings, Identifier id, boolean hasDepth) - Mappings:
Namespace Name Mixin selector official a
Leyt;a(Lfjw;Leyt;Ljava/util/function/Function;Lfjz;Laaj;Z)Lfjs;
intermediary method_3446
Lnet/minecraft/class_793;method_3446(Lnet/minecraft/class_1088;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/ModelLoader;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
Leyt;a(Leyp;Leyq;Lfig;Lgy;Lfjz;Laaj;)Leyo;
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
Leyt;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
Leyt;c(Ljava/lang/String;)Lfjv;
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
Leyt;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
Leyt;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
Leyt;g()Leyt;
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
Leyt;h()Leza;
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
Leyt;a(Leza$b;)Leyz;
intermediary method_3438
Lnet/minecraft/class_793;method_3438(Lnet/minecraft/class_809$class_811;)Lnet/minecraft/class_804;
named getTransformation
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;getTransformation(Lnet/minecraft/client/render/model/json/ModelTransformation$Mode;)Lnet/minecraft/client/render/model/json/Transformation;
-
toString
-