@Environment(value=CLIENT) public class BuiltinBakedModel extends Object implements BakedModel
| Modifier and Type | Field and Description |
|---|---|
private ModelOverrideList |
itemPropertyOverrides |
private boolean |
sideLit |
private Sprite |
sprite |
private ModelTransformation |
transformation |
| Constructor and Description |
|---|
BuiltinBakedModel(ModelTransformation transformation,
ModelOverrideList itemPropertyOverrides,
Sprite sprite,
boolean sideLit) |
| Modifier and Type | Method and 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() |
private final ModelTransformation transformation
private final ModelOverrideList itemPropertyOverrides
private final Sprite sprite
private final boolean sideLit
public BuiltinBakedModel(ModelTransformation transformation, ModelOverrideList itemPropertyOverrides, Sprite sprite, boolean sideLit)
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random)
getQuads in interface BakedModelpublic boolean useAmbientOcclusion()
useAmbientOcclusion in interface BakedModelpublic boolean hasDepth()
hasDepth in interface BakedModelpublic boolean isSideLit()
True, the model will be lit from the side, like a block.
False, the model will be lit from the front, like an item.
isSideLit in interface BakedModelpublic boolean isBuiltin()
isBuiltin in interface BakedModelpublic Sprite getSprite()
getSprite in interface BakedModelpublic ModelTransformation getTransformation()
getTransformation in interface BakedModelpublic ModelOverrideList getOverrides()
getOverrides in interface BakedModel