接口 IGeometryBakingContext
public interface IGeometryBakingContext
The context in which a geometry is being baked, providing information such as lighting and
transforms, and allowing the user to create materials and query
render types.
- 另请参阅:
-
方法概要
修饰符和类型方法说明default RenderTypeGroup
返回 aRenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.。default RenderTypeGroup
返回 aRenderTypeGroup
with the given name, or the empty group if not found.。default RenderTypeGroup
返回 aRenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.。default @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。
-
方法详细资料
-
isGui3d
boolean isGui3d()返回 true if this model should render in 3D in a GUI, false otherwise。- 返回:
- true if this model should render in 3D in a GUI, false otherwise
-
useBlockLight
boolean useBlockLight()返回 true if block lighting should be used for this model, false otherwise。- 返回:
- true if block lighting should be used for this model, false otherwise
-
useAmbientOcclusion
boolean useAmbientOcclusion()返回 true if per-vertex ambient occlusion should be used for this model, false otherwise。- 返回:
- true if per-vertex ambient occlusion should be used for this model, false otherwise
-
getTransforms
ItemTransforms getTransforms()返回 the transforms for display in item form.。- 返回:
- the transforms for display in item form.
-
getRootTransform
Transformation getRootTransform()返回 the root transformation to be applied to all variants of this model, regardless of item transforms.。- 返回:
- the root transformation to be applied to all variants of this model, regardless of item transforms.
-
getRenderTypeHint
返回 a hint of the render type this model should use. Custom loaders may ignore this.。- 返回:
- a hint of the render type this model should use. Custom loaders may ignore this.
-
getRenderTypeFastHint
- 返回:
- a hint of the fast graphics render type this model should use. Custom loaders may ignore this.
-
isComponentVisible
Queries the visibility of a component of this model.- 参数:
component
- The component for which to query visibilityfallback
- The default visibility if an override isn't found- 返回:
- The visibility of the component
-
getRenderType
返回 aRenderTypeGroup
with the given name, or the empty group if not found.。- 返回:
- a
RenderTypeGroup
with the given name, or the empty group if not found.
-
getRenderType
返回 aRenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.。- 返回:
- a
RenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.
-
getRenderTypeFast
返回 aRenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.。- 返回:
- a
RenderTypeGroup
from thegetRenderTypeHint()
, or the empty group if not found.
-