接口 IForgeBakedModel
- 所有已知子接口:
BakedModel
,IDynamicBakedModel
- 所有已知实现类:
BakedModelWrapper
,CompositeModel.Baked
,DelegateBakedModel
,EmptyModel.Baked
,MultiPartBakedModel
,SeparateTransformsModel.Baked
,SimpleBakedModel
,WeightedBakedModel
public interface IForgeBakedModel
Extension interface for
IForgeBakedModel
.-
方法概要
修饰符和类型方法说明default BakedModel
applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the given引用无效
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.default @NotNull ModelData
getModelData
(@NotNull BlockAndTintGetter level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull ModelData modelData) default TextureAtlasSprite
getParticleIcon
(@NotNull ModelData data) getQuads
(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.default ChunkRenderTypeSet
getRenderTypes
(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender types
to use when drawing this block in the level.private BakedModel
self()
default boolean
useAmbientOcclusion
(BlockState state) default boolean
useAmbientOcclusion
(BlockState state, RenderType renderType)
-
方法详细资料
-
self
-
getQuads
@NotNull default @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data, @Nullable @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads. -
useAmbientOcclusion
-
useAmbientOcclusion
-
applyTransform
default BakedModel applyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the given引用无效
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered. -
getModelData
@NotNull default @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) -
getParticleIcon
-
getRenderTypes
default ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data) 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
.
-