类 BakedModelWrapper<T extends BakedModel>
java.lang.Object
net.minecraftforge.client.model.BakedModelWrapper<T>
- 所有已实现的接口:
BakedModel
,IForgeBakedModel
Wrapper for
BakedModel
which delegates all operations to its parent.
Useful for creating wrapper baked models which only override certain properties.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered.@NotNull ModelData
getModelData
(@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 nullRenderType
is 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 types
to use when drawing this block in the level.getRenderTypes
(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender types
to use when drawing this item.boolean
boolean
isGui3d()
boolean
boolean
useAmbientOcclusion
(BlockState state) boolean
useAmbientOcclusion
(BlockState state, RenderType renderType) boolean
-
字段详细资料
-
originalModel
-
-
构造器详细资料
-
BakedModelWrapper
-
-
方法详细资料
-
getQuads
public List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, RandomSource rand) - 指定者:
getQuads
在接口中BakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- 指定者:
useAmbientOcclusion
在接口中BakedModel
-
useAmbientOcclusion
- 指定者:
useAmbientOcclusion
在接口中IForgeBakedModel
-
useAmbientOcclusion
- 指定者:
useAmbientOcclusion
在接口中IForgeBakedModel
-
isGui3d
public boolean isGui3d()- 指定者:
isGui3d
在接口中BakedModel
-
usesBlockLight
public boolean usesBlockLight()- 指定者:
usesBlockLight
在接口中BakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- 指定者:
isCustomRenderer
在接口中BakedModel
-
getParticleIcon
- 指定者:
getParticleIcon
在接口中BakedModel
-
getTransforms
- 指定者:
getTransforms
在接口中BakedModel
-
getOverrides
- 指定者:
getOverrides
在接口中BakedModel
-
applyTransform
public BakedModel applyTransform(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) 从接口复制的说明:IForgeBakedModel
Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered.- 指定者:
applyTransform
在接口中IForgeBakedModel
-
getParticleIcon
- 指定者:
getParticleIcon
在接口中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) 从接口复制的说明:IForgeBakedModel
A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- 指定者:
getQuads
在接口中IForgeBakedModel
-
getModelData
@NotNull public @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) - 指定者:
getModelData
在接口中IForgeBakedModel
-
getRenderTypes
public ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data) 从接口复制的说明:IForgeBakedModel
Gets the set ofrender types
to use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers()
.By default, defers query to
ItemBlockRenderTypes
.- 指定者:
getRenderTypes
在接口中IForgeBakedModel
-
getRenderTypes
从接口复制的说明:IForgeBakedModel
Gets an ordered list ofrender types
to use when drawing this item. All render types using theDefaultVertexFormat.NEW_ENTITY
format are supported.This method will only be called on the models returned by
IForgeBakedModel.getRenderPasses(ItemStack, boolean)
.By default, defers query to
ItemBlockRenderTypes
. -
getRenderPasses
从接口复制的说明:IForgeBakedModel
Gets 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.
-