Class WeightedBakedModel
- java.lang.Object
-
- net.minecraft.client.renderer.model.WeightedBakedModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
public class WeightedBakedModel extends java.lang.Object implements IDynamicBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeightedBakedModel.Builder
(package private) static class
WeightedBakedModel.WeightedModel
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<WeightedBakedModel.WeightedModel>
list
private int
totalWeight
private IBakedModel
wrapped
-
Constructor Summary
Constructors Constructor Description WeightedBakedModel(java.util.List<WeightedBakedModel.WeightedModel> p_i46073_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
TextureAtlasSprite
getParticleTexture(IModelData modelData)
java.util.List<BakedQuad>
getQuads(BlockState p_200117_1_, Direction p_200117_2_, java.util.Random p_200117_3_, IModelData modelData)
ItemCameraTransforms
getTransforms()
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType transformType, MatrixStack matrixStack)
boolean
isAmbientOcclusion(BlockState state)
boolean
isCustomRenderer()
boolean
isGui3d()
boolean
useAmbientOcclusion()
boolean
usesBlockLight()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.client.model.data.IDynamicBakedModel
getQuads
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
doesHandlePerspectives, getBakedModel, getLayerModels, getModelData, isLayered
-
-
-
-
Field Detail
-
totalWeight
private final int totalWeight
-
list
private final java.util.List<WeightedBakedModel.WeightedModel> list
-
wrapped
private final IBakedModel wrapped
-
-
Constructor Detail
-
WeightedBakedModel
public WeightedBakedModel(java.util.List<WeightedBakedModel.WeightedModel> p_i46073_1_)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState p_200117_1_, @Nullable Direction p_200117_2_, java.util.Random p_200117_3_, IModelData modelData)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()
- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isAmbientOcclusion
public boolean isAmbientOcclusion(BlockState state)
- Specified by:
isAmbientOcclusion
in interfaceIForgeBakedModel
-
isGui3d
public boolean isGui3d()
- Specified by:
isGui3d
in interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()
- Specified by:
usesBlockLight
in interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()
- Specified by:
isCustomRenderer
in interfaceIBakedModel
-
getParticleIcon
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getParticleTexture
public TextureAtlasSprite getParticleTexture(IModelData modelData)
- Specified by:
getParticleTexture
in interfaceIForgeBakedModel
-
getTransforms
public ItemCameraTransforms getTransforms()
- Specified by:
getTransforms
in interfaceIBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType transformType, MatrixStack matrixStack)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
-