Package net.minecraftforge.client.model
Class BakedModelWrapper<T extends BakedModel>
java.lang.Object
net.minecraftforge.client.model.BakedModelWrapper<T>
- All Implemented Interfaces:
- BakedModel,- IForgeBakedModel
Wrapper for 
BakedModel which delegates all operations to its parent.
 Useful for creating wrapper baked models which only override certain properties.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapplyTransform(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformTypeandapplyLeftHandTransform, and returns the model to be rendered.@NotNull ModelDatagetModelData(@NotNull BlockAndTintGetter level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull ModelData modelData) getParticleIcon(@NotNull ModelData data) getQuads(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData extraData, @Nullable RenderType renderType) A nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.getQuads(@Nullable BlockState state, @Nullable Direction side, RandomSource rand) getRenderPasses(ItemStack itemStack, boolean fabulous) Gets an ordered list of baked models used to render this model as an item.getRenderTypes(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender typesto use when drawing this block in the level.getRenderTypes(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender typesto use when drawing this item.booleanbooleanisGui3d()booleanbooleanuseAmbientOcclusion(BlockState state) booleanuseAmbientOcclusion(BlockState state, RenderType renderType) boolean
- 
Field Details- 
originalModel
 
- 
- 
Constructor Details- 
BakedModelWrapper
 
- 
- 
Method Details- 
getQuadspublic List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, RandomSource rand) - Specified by:
- getQuadsin interface- BakedModel
 
- 
useAmbientOcclusionpublic boolean useAmbientOcclusion()- Specified by:
- useAmbientOcclusionin interface- BakedModel
 
- 
useAmbientOcclusion- Specified by:
- useAmbientOcclusionin interface- IForgeBakedModel
 
- 
useAmbientOcclusion- Specified by:
- useAmbientOcclusionin interface- IForgeBakedModel
 
- 
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
 
- 
getTransforms- Specified by:
- getTransformsin interface- BakedModel
 
- 
getOverrides- Specified by:
- getOverridesin interface- BakedModel
 
- 
applyTransformpublic BakedModel applyTransform(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Description copied from interface:IForgeBakedModelApplies a transform for the givenItemTransforms.TransformTypeandapplyLeftHandTransform, and returns the model to be rendered.- Specified by:
- applyTransformin interface- IForgeBakedModel
 
- 
getParticleIcon- Specified by:
- getParticleIconin interface- IForgeBakedModel
 
- 
getQuads@NotNull public @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData extraData, @Nullable @Nullable RenderType renderType) Description copied from interface:IForgeBakedModelA nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- Specified by:
- getQuadsin interface- IForgeBakedModel
 
- 
getModelData@NotNull public @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) - Specified by:
- getModelDatain interface- IForgeBakedModel
 
- 
getRenderTypespublic ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data) Description copied from interface:IForgeBakedModelGets 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- IForgeBakedModel
 
- 
getRenderTypesDescription copied from interface:IForgeBakedModelGets an ordered list ofrender typesto use when drawing this item. All render types using theDefaultVertexFormat.NEW_ENTITYformat are supported.This method will only be called on the models returned by IForgeBakedModel.getRenderPasses(ItemStack, boolean).By default, defers query to ItemBlockRenderTypes.- Specified by:
- getRenderTypesin interface- IForgeBakedModel
- See Also:
 
- 
getRenderPassesDescription copied from interface:IForgeBakedModelGets an ordered list of baked models used to render this model as an item. Each of those models' render types will be queried viaIForgeBakedModel.getRenderTypes(ItemStack, boolean).By default, returns the model itself. - Specified by:
- getRenderPassesin interface- IForgeBakedModel
- See Also:
 
 
-