public class WeightedBakedModel extends java.lang.Object implements IBakedModel
Modifier and Type | Class and Description |
---|---|
static class |
WeightedBakedModel.Builder |
(package private) static class |
WeightedBakedModel.WeightedModel |
Modifier and Type | Field and Description |
---|---|
private IBakedModel |
baseModel |
private java.util.List<WeightedBakedModel.WeightedModel> |
models |
private int |
totalWeight |
Constructor and Description |
---|
WeightedBakedModel(java.util.List<WeightedBakedModel.WeightedModel> modelsIn) |
Modifier and Type | Method and Description |
---|---|
ItemCameraTransforms |
getItemCameraTransforms() |
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(IBlockState state,
EnumFacing side,
long rand) |
private IBakedModel |
getRandomModel(long p_188627_1_) |
boolean |
isAmbientOcclusion() |
boolean |
isAmbientOcclusion(IBlockState state) |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlePerspective
private final int totalWeight
private final java.util.List<WeightedBakedModel.WeightedModel> models
private final IBakedModel baseModel
public WeightedBakedModel(java.util.List<WeightedBakedModel.WeightedModel> modelsIn)
private IBakedModel getRandomModel(long p_188627_1_)
public java.util.List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand)
getQuads
in interface IBakedModel
public boolean isAmbientOcclusion()
isAmbientOcclusion
in interface IBakedModel
public boolean isAmbientOcclusion(IBlockState state)
isAmbientOcclusion
in interface IBakedModel
public boolean isGui3d()
isGui3d
in interface IBakedModel
public boolean isBuiltInRenderer()
isBuiltInRenderer
in interface IBakedModel
public TextureAtlasSprite getParticleTexture()
getParticleTexture
in interface IBakedModel
public ItemCameraTransforms getItemCameraTransforms()
getItemCameraTransforms
in interface IBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel