类 WeightedBakedModel
java.lang.Object
net.minecraft.client.resources.model.WeightedBakedModel
- 所有已实现的接口:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final List<WeightedEntry.Wrapper<BakedModel>>
private final int
private final BakedModel
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明applyTransform
(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered.getParticleIcon
(ModelData modelData) getQuads
(BlockState pState, Direction pDirection, RandomSource pRandom, ModelData modelData, 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, ModelData data) Gets the set ofrender types
to use when drawing this block in the level.boolean
boolean
isGui3d()
boolean
boolean
useAmbientOcclusion
(BlockState state) boolean
useAmbientOcclusion
(BlockState state, RenderType renderType) 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, getRenderPasses, getRenderTypes
-
字段详细资料
-
totalWeight
private final int totalWeight -
list
-
wrapped
-
-
构造器详细资料
-
WeightedBakedModel
-
-
方法详细资料
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState pState, @Nullable Direction pDirection, RandomSource pRandom, ModelData modelData, @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
-
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
-
getParticleIcon
- 指定者:
getParticleIcon
在接口中IForgeBakedModel
-
getTransforms
- 指定者:
getTransforms
在接口中BakedModel
-
applyTransform
public BakedModel applyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) 从接口复制的说明:IForgeBakedModel
Applies a transform for the givenItemTransforms.TransformType
andapplyLeftHandTransform
, and returns the model to be rendered.- 指定者:
applyTransform
在接口中IForgeBakedModel
-
getRenderTypes
public ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @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
-
getOverrides
- 指定者:
getOverrides
在接口中BakedModel
-