Class MultipartBakedModel
java.lang.Object
net.minecraft.client.render.model.MultipartBakedModel
- All Implemented Interfaces:
BakedModel
@Environment(CLIENT) public class MultipartBakedModel extends Object implements BakedModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultipartBakedModel.Builder -
Field Summary
Fields Modifier and Type Field Description protected booleanambientOcclusionprivate List<Pair<Predicate<BlockState>,BakedModel>>componentsprotected booleandepthGuiprotected ModelOverrideListitemPropertyOverridesprotected booleansideLitprotected Spritespriteprivate Map<BlockState,BitSet>stateCacheprotected ModelTransformationtransformations -
Constructor Summary
Constructors Constructor Description MultipartBakedModel(List<Pair<Predicate<BlockState>,BakedModel>> components) -
Method Summary
Modifier and Type Method Description ModelOverrideListgetOverrides()List<BakedQuad>getQuads(BlockState state, Direction face, Random random)SpritegetSprite()ModelTransformationgetTransformation()booleanhasDepth()booleanisBuiltin()booleanisSideLit()Allows control of the lighting when rendering a model in a GUI.booleanuseAmbientOcclusion()
-
Field Details
-
components
-
ambientOcclusion
protected final boolean ambientOcclusion -
depthGui
protected final boolean depthGui -
sideLit
protected final boolean sideLit -
sprite
-
transformations
-
itemPropertyOverrides
-
stateCache
-
-
Constructor Details
-
MultipartBakedModel
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random)- Specified by:
getQuadsin interfaceBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusionin interfaceBakedModel
-
hasDepth
public boolean hasDepth()- Specified by:
hasDepthin 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:
isSideLitin interfaceBakedModel
-
isBuiltin
public boolean isBuiltin()- Specified by:
isBuiltinin interfaceBakedModel
-
getSprite
- Specified by:
getSpritein interfaceBakedModel
-
getTransformation
- Specified by:
getTransformationin interfaceBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceBakedModel
-