类 CompositeModel.Baked
java.lang.Object
net.minecraftforge.client.model.CompositeModel.Baked
- 所有已实现的接口:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
- 封闭类:
CompositeModel
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final com.google.common.collect.ImmutableMap
<String, BakedModel> private final boolean
private final boolean
private final boolean
private final com.google.common.collect.ImmutableList
<BakedModel> private final TextureAtlasSprite
private final ItemTransforms
-
构造器概要
构造器构造器说明Baked
(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses) -
方法概要
修饰符和类型方法说明static CompositeModel.Baked.Builder
builder
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemTransforms cameraTransforms) static CompositeModel.Baked.Builder
builder
(IGeometryBakingContext owner, TextureAtlasSprite particle, ItemTransforms cameraTransforms) @NotNull ModelData
getModelData
(@NotNull BlockAndTintGetter level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull ModelData modelData) @Nullable BakedModel
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
applyTransform, getParticleIcon, useAmbientOcclusion, useAmbientOcclusion
-
字段详细资料
-
isAmbientOcclusion
private final boolean isAmbientOcclusion -
isGui3d
private final boolean isGui3d -
isSideLit
private final boolean isSideLit -
particle
-
transforms
-
children
-
itemPasses
-
-
构造器详细资料
-
Baked
public Baked(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses)
-
-
方法详细资料
-
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
-
getModelData
@NotNull public @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) - 指定者:
getModelData
在接口中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
-
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
-
getPart
-
builder
public static CompositeModel.Baked.Builder builder(IGeometryBakingContext owner, TextureAtlasSprite particle, ItemTransforms cameraTransforms) -
builder
public static CompositeModel.Baked.Builder builder(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemTransforms cameraTransforms)
-