Class WeightedBakedModel
java.lang.Object
net.minecraft.client.render.model.WeightedBakedModel
- All Implemented Interfaces:
BakedModel
@Environment(CLIENT) public class WeightedBakedModel extends Object implements BakedModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWeightedBakedModel.Builder(package private) static classWeightedBakedModel.Entry -
Field Summary
Fields Modifier and Type Field Description private BakedModeldefaultModelprivate List<WeightedBakedModel.Entry>modelsprivate inttotalWeight -
Constructor Summary
Constructors Constructor Description WeightedBakedModel(List<WeightedBakedModel.Entry> models) -
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
-
totalWeight
private final int totalWeight -
models
-
defaultModel
-
-
Constructor Details
-
WeightedBakedModel
-
-
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
-