@Environment(value=CLIENT) public class BasicBakedModel extends Object implements BakedModel
Modifier and Type | Class and Description |
---|---|
static class |
BasicBakedModel.Builder |
Modifier and Type | Field and 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 and Description |
---|
BasicBakedModel(List<BakedQuad> quads,
Map<Direction,List<BakedQuad>> faceQuads,
boolean usesAo,
boolean isSideLit,
boolean hasDepth,
Sprite sprite,
ModelTransformation modelTransformation,
ModelOverrideList modelOverrideList) |
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() |
protected final boolean usesAo
protected final boolean hasDepth
protected final boolean isSideLit
protected final Sprite sprite
protected final ModelTransformation transformation
protected final ModelOverrideList itemPropertyOverrides
public BasicBakedModel(List<BakedQuad> quads, Map<Direction,List<BakedQuad>> faceQuads, boolean usesAo, boolean isSideLit, boolean hasDepth, Sprite sprite, ModelTransformation modelTransformation, ModelOverrideList modelOverrideList)
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction face, Random random)
getQuads
in interface BakedModel
public boolean useAmbientOcclusion()
useAmbientOcclusion
in interface BakedModel
public boolean hasDepth()
hasDepth
in interface BakedModel
public 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 BakedModel
public boolean isBuiltin()
isBuiltin
in interface BakedModel
public Sprite getSprite()
getSprite
in interface BakedModel
public ModelTransformation getTransformation()
getTransformation
in interface BakedModel
public ModelOverrideList getOverrides()
getOverrides
in interface BakedModel