@Environment(value=CLIENT) public class MultipartBakedModel extends Object implements BakedModel
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipartBakedModel.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ambientOcclusion |
private List<Pair<Predicate<BlockState>,BakedModel>> |
components |
protected boolean |
depthGui |
protected ModelOverrideList |
itemPropertyOverrides |
protected boolean |
sideLit |
protected Sprite |
sprite |
private Map<BlockState,BitSet> |
stateCache |
protected ModelTransformation |
transformations |
| Constructor and Description |
|---|
MultipartBakedModel(List<Pair<Predicate<BlockState>,BakedModel>> components) |
| 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 List<Pair<Predicate<BlockState>,BakedModel>> components
protected final boolean ambientOcclusion
protected final boolean depthGui
protected final boolean sideLit
protected final Sprite sprite
protected final ModelTransformation transformations
protected final ModelOverrideList itemPropertyOverrides
private final Map<BlockState,BitSet> stateCache
public MultipartBakedModel(List<Pair<Predicate<BlockState>,BakedModel>> components)
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