类 SeparateTransformsModel.Baked
java.lang.Object
net.minecraftforge.client.model.SeparateTransformsModel.Baked
- 所有已实现的接口:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
-
字段概要
字段修饰符和类型字段说明private final BakedModel
private final boolean
private final boolean
private final boolean
private final TextureAtlasSprite
private final com.google.common.collect.ImmutableMap
<ItemDisplayContext, BakedModel> -
构造器概要
构造器构造器说明Baked
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BakedModel> perspectives) -
方法概要
修饰符和类型方法说明applyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the given引用无效
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.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.getRenderTypes
(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender types
to use when drawing this block in the level.boolean
isGui3d()
boolean
boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.model.IDynamicBakedModel
getQuads
从接口继承的方法 net.minecraftforge.client.extensions.IForgeBakedModel
getModelData, getParticleIcon, useAmbientOcclusion, useAmbientOcclusion
-
字段详细资料
-
isAmbientOcclusion
private final boolean isAmbientOcclusion -
isGui3d
private final boolean isGui3d -
isSideLit
private final boolean isSideLit -
particle
-
baseModel
-
perspectives
-
-
构造器详细资料
-
Baked
public Baked(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BakedModel> perspectives)
-
-
方法详细资料
-
getQuads
@NotNull public @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data, @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
在接口中IDynamicBakedModel
- 指定者:
getQuads
在接口中IForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- 指定者:
useAmbientOcclusion
在接口中BakedModel
-
isGui3d
public boolean isGui3d()- 指定者:
isGui3d
在接口中BakedModel
-
usesBlockLight
public boolean usesBlockLight()- 指定者:
usesBlockLight
在接口中BakedModel
-
getParticleIcon
- 指定者:
getParticleIcon
在接口中BakedModel
-
getTransforms
- 指定者:
getTransforms
在接口中BakedModel
-
applyTransform
public BakedModel applyTransform(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) 从接口复制的说明:IForgeBakedModel
Applies a transform for the given引用无效
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.- 指定者:
applyTransform
在接口中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
-