Class WeightedBakedModel
java.lang.Object
net.minecraft.client.resources.model.WeightedBakedModel
- All Implemented Interfaces:
- BakedModel,- IBakedModelExtension,- IDynamicBakedModel
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<WeightedEntry.Wrapper<BakedModel>>private final intprivate final BakedModel
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapplyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenandinvalid @linkItemTransforms.TransformTypeapplyLeftHandTransform, and returns the model to be rendered.getParticleIcon(ModelData modelData) getQuads(BlockState p_235058_, Direction p_235059_, RandomSource p_235060_, ModelData modelData, RenderType renderType) A nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.getRenderTypes(@NotNull BlockState state, @NotNull RandomSource rand, ModelData data) Gets the set ofrender typesto use when drawing this block in the level.booleanbooleanisGui3d()booleanbooleanuseAmbientOcclusion(BlockState state) booleanuseAmbientOcclusion(BlockState state, RenderType renderType) booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IBakedModelExtensiongetModelData, getRenderPasses, getRenderTypesMethods inherited from interface net.neoforged.neoforge.client.model.IDynamicBakedModelgetQuads
- 
Field Details- 
totalWeightprivate final int totalWeight
- 
list
- 
wrapped
 
- 
- 
Constructor Details- 
WeightedBakedModel
 
- 
- 
Method Details- 
getQuadspublic List<BakedQuad> getQuads(@Nullable BlockState p_235058_, @Nullable Direction p_235059_, RandomSource p_235060_, ModelData modelData, @Nullable RenderType renderType) Description copied from interface:IBakedModelExtensionA nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- Specified by:
- getQuadsin interface- IBakedModelExtension
- Specified by:
- getQuadsin interface- IDynamicBakedModel
 
- 
useAmbientOcclusionpublic boolean useAmbientOcclusion()- Specified by:
- useAmbientOcclusionin interface- BakedModel
 
- 
useAmbientOcclusion- Specified by:
- useAmbientOcclusionin interface- IBakedModelExtension
 
- 
useAmbientOcclusion- Specified by:
- useAmbientOcclusionin interface- IBakedModelExtension
 
- 
isGui3dpublic boolean isGui3d()- Specified by:
- isGui3din interface- BakedModel
 
- 
usesBlockLightpublic boolean usesBlockLight()- Specified by:
- usesBlockLightin interface- BakedModel
 
- 
isCustomRendererpublic boolean isCustomRenderer()- Specified by:
- isCustomRendererin interface- BakedModel
 
- 
getParticleIcon- Specified by:
- getParticleIconin interface- BakedModel
 
- 
getParticleIcon- Specified by:
- getParticleIconin interface- IBakedModelExtension
 
- 
getTransforms- Specified by:
- getTransformsin interface- BakedModel
 
- 
applyTransformpublic BakedModel applyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Description copied from interface:IBakedModelExtensionApplies a transform for the givenandinvalid @linkItemTransforms.TransformTypeapplyLeftHandTransform, and returns the model to be rendered.- Specified by:
- applyTransformin interface- IBakedModelExtension
 
- 
getRenderTypespublic ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull ModelData data) Description copied from interface:IBakedModelExtensionGets the set ofrender typesto use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers().By default, defers query to ItemBlockRenderTypes.- Specified by:
- getRenderTypesin interface- IBakedModelExtension
 
- 
getOverrides- Specified by:
- getOverridesin interface- BakedModel
 
 
-