Class BasicBakedModel
java.lang.Object
net.minecraft.client.render.model.BasicBakedModel
- All Implemented Interfaces:
BakedModel
@Environment(CLIENT) public class BasicBakedModel extends Object implements BakedModel
- Mappings:
Namespace Name official etp
intermediary net/minecraft/class_1093
named net/minecraft/client/render/model/BasicBakedModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicBakedModel.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Map<Direction,List<BakedQuad>>
faceQuads
protected boolean
hasDepth
protected boolean
isSideLit
protected ModelOverrideList
itemPropertyOverrides
protected List<BakedQuad>
quads
protected Sprite
sprite
protected ModelTransformation
transformation
protected boolean
usesAo
-
Constructor Summary
Constructors Constructor Description BasicBakedModel(List<BakedQuad> quads, Map<Direction,List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation transformation, ModelOverrideList itemPropertyOverrides)
-
Method Summary
Modifier and Type Method Description ModelOverrideList
getOverrides()
List<BakedQuad>
getQuads(BlockState state, Direction face, Random random)
Sprite
getSprite()
ModelTransformation
getTransformation()
boolean
hasDepth()
boolean
isBuiltin()
boolean
isSideLit()
Allows control of the lighting when rendering a model in a GUI.boolean
useAmbientOcclusion()
-
Field Details
-
quads
- Mappings:
Namespace Name Mixin selector official a
Letp;a:Ljava/util/List;
intermediary field_5411
Lnet/minecraft/class_1093;field_5411:Ljava/util/List;
named quads
Lnet/minecraft/client/render/model/BasicBakedModel;quads:Ljava/util/List;
-
faceQuads
- Mappings:
Namespace Name Mixin selector official b
Letp;b:Ljava/util/Map;
intermediary field_5414
Lnet/minecraft/class_1093;field_5414:Ljava/util/Map;
named faceQuads
Lnet/minecraft/client/render/model/BasicBakedModel;faceQuads:Ljava/util/Map;
-
usesAo
protected final boolean usesAo- Mappings:
Namespace Name Mixin selector official c
Letp;c:Z
intermediary field_5415
Lnet/minecraft/class_1093;field_5415:Z
named usesAo
Lnet/minecraft/client/render/model/BasicBakedModel;usesAo:Z
-
hasDepth
protected final boolean hasDepth- Mappings:
Namespace Name Mixin selector official d
Letp;d:Z
intermediary field_5413
Lnet/minecraft/class_1093;field_5413:Z
named hasDepth
Lnet/minecraft/client/render/model/BasicBakedModel;hasDepth:Z
-
isSideLit
protected final boolean isSideLit- Mappings:
Namespace Name Mixin selector official e
Letp;e:Z
intermediary field_21864
Lnet/minecraft/class_1093;field_21864:Z
named isSideLit
Lnet/minecraft/client/render/model/BasicBakedModel;isSideLit:Z
-
sprite
- Mappings:
Namespace Name Mixin selector official f
Letp;f:Leru;
intermediary field_5416
Lnet/minecraft/class_1093;field_5416:Lnet/minecraft/class_1058;
named sprite
Lnet/minecraft/client/render/model/BasicBakedModel;sprite:Lnet/minecraft/client/texture/Sprite;
-
transformation
- Mappings:
Namespace Name Mixin selector official g
Letp;g:Leiw;
intermediary field_5417
Lnet/minecraft/class_1093;field_5417:Lnet/minecraft/class_809;
named transformation
Lnet/minecraft/client/render/model/BasicBakedModel;transformation:Lnet/minecraft/client/render/model/json/ModelTransformation;
-
itemPropertyOverrides
- Mappings:
Namespace Name Mixin selector official h
Letp;h:Leiu;
intermediary field_5412
Lnet/minecraft/class_1093;field_5412:Lnet/minecraft/class_806;
named itemPropertyOverrides
Lnet/minecraft/client/render/model/BasicBakedModel;itemPropertyOverrides:Lnet/minecraft/client/render/model/json/ModelOverrideList;
-
-
Constructor Details
-
BasicBakedModel
public BasicBakedModel(List<BakedQuad> quads, Map<Direction,List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation transformation, ModelOverrideList itemPropertyOverrides)- Mappings:
Namespace Name Mixin selector official <init>
Letp;<init>(Ljava/util/List;Ljava/util/Map;ZZZLeru;Leiw;Leiu;)V
intermediary <init>
Lnet/minecraft/class_1093;<init>(Ljava/util/List;Ljava/util/Map;ZZZLnet/minecraft/class_1058;Lnet/minecraft/class_809;Lnet/minecraft/class_806;)V
named <init>
Lnet/minecraft/client/render/model/BasicBakedModel;<init>(Ljava/util/List;Ljava/util/Map;ZZZLnet/minecraft/client/texture/Sprite;Lnet/minecraft/client/render/model/json/ModelTransformation;Lnet/minecraft/client/render/model/json/ModelOverrideList;)V
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random)- Specified by:
getQuads
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official a
Letg;a(Lcht;Lgc;Ljava/util/Random;)Ljava/util/List;
intermediary method_4707
Lnet/minecraft/class_1087;method_4707(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Ljava/util/Random;)Ljava/util/List;
named getQuads
Lnet/minecraft/client/render/model/BakedModel;getQuads(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Ljava/util/Random;)Ljava/util/List;
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official a
Letg;a()Z
intermediary method_4708
Lnet/minecraft/class_1087;method_4708()Z
named useAmbientOcclusion
Lnet/minecraft/client/render/model/BakedModel;useAmbientOcclusion()Z
-
hasDepth
public boolean hasDepth()- Specified by:
hasDepth
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official b
Letg;b()Z
intermediary method_4712
Lnet/minecraft/class_1087;method_4712()Z
named hasDepth
Lnet/minecraft/client/render/model/BakedModel;hasDepth()Z
-
isSideLit
public boolean isSideLit()Allows control of the lighting when rendering a model in a GUI.True, the model will be lit from the side, like a block.
False, the model will be lit from the front, like an item.
- Specified by:
isSideLit
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official c
Letg;c()Z
intermediary method_24304
Lnet/minecraft/class_1087;method_24304()Z
named isSideLit
Lnet/minecraft/client/render/model/BakedModel;isSideLit()Z
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltin
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official d
Letg;d()Z
intermediary method_4713
Lnet/minecraft/class_1087;method_4713()Z
named isBuiltin
Lnet/minecraft/client/render/model/BakedModel;isBuiltin()Z
-
getSprite
- Specified by:
getSprite
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official e
Letg;e()Leru;
intermediary method_4711
Lnet/minecraft/class_1087;method_4711()Lnet/minecraft/class_1058;
named getSprite
Lnet/minecraft/client/render/model/BakedModel;getSprite()Lnet/minecraft/client/texture/Sprite;
-
getTransformation
- Specified by:
getTransformation
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official f
Letg;f()Leiw;
intermediary method_4709
Lnet/minecraft/class_1087;method_4709()Lnet/minecraft/class_809;
named getTransformation
Lnet/minecraft/client/render/model/BakedModel;getTransformation()Lnet/minecraft/client/render/model/json/ModelTransformation;
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
- Mappings:
Namespace Name Mixin selector official g
Letg;g()Leiu;
intermediary method_4710
Lnet/minecraft/class_1087;method_4710()Lnet/minecraft/class_806;
named getOverrides
Lnet/minecraft/client/render/model/BakedModel;getOverrides()Lnet/minecraft/client/render/model/json/ModelOverrideList;
-