类 StandaloneGeometryBakingContext
java.lang.Object
net.minecraftforge.client.model.geometry.StandaloneGeometryBakingContext
- 所有已实现的接口:
IGeometryBakingContext
A geometry baking context that is not bound to block/item model loading.
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final StandaloneGeometryBakingContext
private final boolean
static final ResourceLocation
private final @Nullable ResourceLocation
private final @Nullable ResourceLocation
private final Transformation
private final ItemTransforms
private final boolean
private final boolean
private final BiPredicate
<String, Boolean> -
构造器概要
构造器限定符构造器说明private
StandaloneGeometryBakingContext
(boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable ResourceLocation renderTypeHint, BiPredicate<String, Boolean> visibilityTest) private
StandaloneGeometryBakingContext
(boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable ResourceLocation renderTypeHint, @Nullable ResourceLocation renderTypeFastHint, BiPredicate<String, Boolean> visibilityTest) -
方法概要
修饰符和类型方法说明builder()
builder
(IGeometryBakingContext parent) @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
isComponentVisible
(String component, 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。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
-
字段详细资料
-
LOCATION
-
INSTANCE
-
isGui3d
private final boolean isGui3d -
useBlockLight
private final boolean useBlockLight -
useAmbientOcclusion
private final boolean useAmbientOcclusion -
transforms
-
rootTransform
-
renderTypeHint
-
renderTypeFastHint
-
visibilityTest
-
-
构造器详细资料
-
StandaloneGeometryBakingContext
private StandaloneGeometryBakingContext(boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable @Nullable ResourceLocation renderTypeHint, BiPredicate<String, Boolean> visibilityTest) -
StandaloneGeometryBakingContext
private StandaloneGeometryBakingContext(boolean isGui3d, boolean useBlockLight, boolean useAmbientOcclusion, ItemTransforms transforms, Transformation rootTransform, @Nullable @Nullable ResourceLocation renderTypeHint, @Nullable @Nullable ResourceLocation renderTypeFastHint, BiPredicate<String, Boolean> visibilityTest)
-
-
方法详细资料
-
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.
-
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.
-
isComponentVisible
从接口复制的说明:IGeometryBakingContext
Queries the visibility of a component of this model.- 指定者:
isComponentVisible
在接口中IGeometryBakingContext
- 参数:
component
- The component for which to query visibilityfallback
- The default visibility if an override isn't found- 返回:
- The visibility of the component
-
builder
-
builder
-