类 BlockGeometryBakingContext
java.lang.Object
net.minecraftforge.client.model.geometry.BlockGeometryBakingContext
- 所有已实现的接口:
IGeometryBakingContext
A geometry baking context that is bound to a
BlockModel
.
Users should not be instantiating this themselves.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private @Nullable IUnbakedGeometry
<?> private boolean
final BlockModel
private @Nullable ResourceLocation
private @Nullable ResourceLocation
private @Nullable Transformation
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明bake
(ModelBaker baker, TextureSlots textures, ModelState modelTransform) void
@Nullable IUnbakedGeometry
<?> @Nullable ResourceLocation
@Nullable ResourceLocation
返回 a hint of the render type this model should use. Custom loaders may ignore this.。返回 the root transformation to be applied to all variants of this model, regardless of item transforms.。返回 the transforms for display in item form.。boolean
boolean
isComponentVisible
(String part, boolean fallback) Queries the visibility of a component of this model.boolean
isGui3d()
返回 true if this model should render in 3D in a GUI, false otherwise。private BlockGeometryBakingContext
void
setCustomGeometry
(IUnbakedGeometry<?> geometry) void
setGui3d
(boolean gui3d) void
setRenderTypeFastHint
(ResourceLocation renderTypeFastHint) void
setRenderTypeHint
(ResourceLocation renderTypeHint) void
setRootTransform
(Transformation rootTransform) boolean
返回 true if per-vertex ambient occlusion should be used for this model, false otherwise。boolean
返回 true if block lighting should be used for this model, false otherwise。从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.model.geometry.IGeometryBakingContext
getRenderType, getRenderType, getRenderTypeFast
-
字段详细资料
-
owner
-
visibilityData
-
customGeometry
-
rootTransform
-
renderTypeHint
-
renderTypeFastHint
-
gui3d
private boolean gui3d
-
-
构造器详细资料
-
BlockGeometryBakingContext
-
-
方法详细资料
-
hasCustomGeometry
public boolean hasCustomGeometry() -
parentContext
-
getCustomGeometry
-
setCustomGeometry
-
isComponentVisible
从接口复制的说明:IGeometryBakingContext
Queries the visibility of a component of this model.- 指定者:
isComponentVisible
在接口中IGeometryBakingContext
- 参数:
part
- The component for which to query visibilityfallback
- The default visibility if an override isn't found- 返回:
- The visibility of the component
-
isGui3d
public boolean isGui3d()从接口复制的说明:IGeometryBakingContext
返回 true if this model should render in 3D in a GUI, false otherwise。- 指定者:
isGui3d
在接口中IGeometryBakingContext
- 返回:
- true if this model should render in 3D in a GUI, false otherwise
-
useBlockLight
public boolean useBlockLight()从接口复制的说明:IGeometryBakingContext
返回 true if block lighting should be used for this model, false otherwise。- 指定者:
useBlockLight
在接口中IGeometryBakingContext
- 返回:
- true if block lighting should be used for this model, false otherwise
-
useAmbientOcclusion
public boolean useAmbientOcclusion()从接口复制的说明:IGeometryBakingContext
返回 true if per-vertex ambient occlusion should be used for this model, false otherwise。- 指定者:
useAmbientOcclusion
在接口中IGeometryBakingContext
- 返回:
- true if per-vertex ambient occlusion should be used for this model, false otherwise
-
getTransforms
从接口复制的说明:IGeometryBakingContext
返回 the transforms for display in item form.。- 指定者:
getTransforms
在接口中IGeometryBakingContext
- 返回:
- the transforms for display in item form.
-
getRootTransform
从接口复制的说明:IGeometryBakingContext
返回 the root transformation to be applied to all variants of this model, regardless of item transforms.。- 指定者:
getRootTransform
在接口中IGeometryBakingContext
- 返回:
- the root transformation to be applied to all variants of this model, regardless of item transforms.
-
setRootTransform
-
getRenderTypeHint
从接口复制的说明:IGeometryBakingContext
返回 a hint of the render type this model should use. Custom loaders may ignore this.。- 指定者:
getRenderTypeHint
在接口中IGeometryBakingContext
- 返回:
- a hint of the render type this model should use. Custom loaders may ignore this.
-
getRenderTypeFastHint
- 指定者:
getRenderTypeFastHint
在接口中IGeometryBakingContext
- 返回:
- a hint of the fast graphics render type this model should use. Custom loaders may ignore this.
-
setRenderTypeHint
-
setRenderTypeFastHint
-
setGui3d
public void setGui3d(boolean gui3d) -
copyFrom
-
bake
-