Class JsonUnbakedModel
java.lang.Object
net.minecraft.client.render.model.json.JsonUnbakedModel
- All Implemented Interfaces:
UnbakedModel
@Environment(CLIENT) public class JsonUnbakedModel extends Object implements UnbakedModel
- Mappings:
Namespace Name official eip
intermediary net/minecraft/class_793
named net/minecraft/client/render/model/json/JsonUnbakedModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonUnbakedModel.Deserializer
static class
JsonUnbakedModel.GuiLight
-
Field Summary
Fields Modifier and Type Field Description private boolean
ambientOcclusion
private List<ModelElement>
elements
(package private) static Gson
GSON
private JsonUnbakedModel.GuiLight
guiLight
String
id
private static Logger
LOGGER
private List<ModelOverride>
overrides
protected JsonUnbakedModel
parent
protected Identifier
parentId
private static BakedQuadFactory
QUAD_FACTORY
protected Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>>
textureMap
private ModelTransformation
transformations
-
Constructor Summary
Constructors Constructor Description JsonUnbakedModel(Identifier parentId, List<ModelElement> elements, Map<String,com.mojang.datafixers.util.Either<SpriteIdentifier,String>> textureMap, boolean ambientOcclusion, JsonUnbakedModel.GuiLight guiLight, ModelTransformation transformations, List<ModelOverride> overrides)
-
Method Summary
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official f
Leip;f:Lorg/apache/logging/log4j/Logger;
intermediary field_4248
Lnet/minecraft/class_793;field_4248:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;LOGGER:Lorg/apache/logging/log4j/Logger;
-
QUAD_FACTORY
- Mappings:
Namespace Name Mixin selector official g
Leip;g:Leir;
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
Leip;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;
-
elements
- Mappings:
Namespace Name Mixin selector official h
Leip;h: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 i
Leip;i:Leip$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 j
Leip;j: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 k
Leip;k:Leiw;
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 l
Leip;l: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 b
Leip;b: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 c
Leip;c: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 d
Leip;d:Leip;
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 e
Leip;e:Lwb;
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 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)- Mappings:
Namespace Name Mixin selector official <init>
Leip;<init>(Lwb;Ljava/util/List;Ljava/util/Map;ZLeip$b;Leiw;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
Leip;a(Ljava/io/Reader;)Leip;
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
Leip;a(Ljava/lang/String;)Leip;
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
Leip;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
Leip;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
Leip;c()Leip$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;
-
getOverrides
- Mappings:
Namespace Name Mixin selector official e
Leip;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
Leip;a(Letk;Leip;)Leiu;
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
Letq;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
Letq;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
Letq;a(Letk;Ljava/util/function/Function;Letn;Lwb;)Letg;
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
Leip;a(Letk;Leip;Ljava/util/function/Function;Letn;Lwb;Z)Letg;
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
Leip;a(Leil;Leim;Leru;Lgc;Letn;Lwb;)Leik;
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
Leip;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
Leip;c(Ljava/lang/String;)Letj;
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 e
Leip;e(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 f
Leip;f(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
Leip;g()Leip;
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
Leip;h()Leiw;
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
Leip;a(Leiw$b;)Leiv;
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
- Overrides:
toString
in classObject
- Mappings:
Namespace Name Mixin selector official toString
Leip;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_793;toString()Ljava/lang/String;
named toString
Lnet/minecraft/client/render/model/json/JsonUnbakedModel;toString()Ljava/lang/String;
-