Class BasicBakedModel
java.lang.Object
net.minecraft.client.render.model.BasicBakedModel
- All Implemented Interfaces:
BakedModel
@Environment(CLIENT) public class BasicBakedModel extends Object implements BakedModel
-
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 modelTransformation, ModelOverrideList modelOverrideList)
-
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
-
faceQuads
-
usesAo
protected final boolean usesAo -
hasDepth
protected final boolean hasDepth -
isSideLit
protected final boolean isSideLit -
sprite
-
transformation
-
itemPropertyOverrides
-
-
Constructor Details
-
BasicBakedModel
public BasicBakedModel(List<BakedQuad> quads, Map<Direction,List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation modelTransformation, ModelOverrideList modelOverrideList)
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random)- Specified by:
getQuads
in interfaceBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
hasDepth
public boolean hasDepth()- Specified by:
hasDepth
in interfaceBakedModel
-
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
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltin
in interfaceBakedModel
-
getSprite
- Specified by:
getSprite
in interfaceBakedModel
-
getTransformation
- Specified by:
getTransformation
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-