Interface IGeometryBakingContext
- All Known Implementing Classes:
- BlockGeometryBakingContext,- StandaloneGeometryBakingContext
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.
- 
Method SummaryModifier and TypeMethodDescriptiongetMaterial(String name) Resolves the final texture name, taking into account texture aliases and replacements.Returns the name of the model being baked for logging and caching purposes..default RenderTypeGroupReturns aRenderTypeGroupwith the given name, or the empty group if not found..@Nullable ResourceLocationReturns a hint of the render type this model should use. Custom loaders may ignore this..Returns the root transformation to be applied to all variants of this model, regardless of item transforms..Returns the transforms for display in item form..booleanhasMaterial(String name) Checks if a material is present in the model.booleanisComponentVisible(String component, boolean fallback) Queries the visibility of a component of this model.booleanisGui3d()Returns true if this model should render in 3D in a GUI, false otherwise.booleanReturns true if per-vertex ambient occlusion should be used for this model, false otherwise.booleanReturns true if block lighting should be used for this model, false otherwise.
- 
Method Details- 
getModelNameString getModelName()Returns the name of the model being baked for logging and caching purposes..- Returns:
- the name of the model being baked for logging and caching purposes.
 
- 
hasMaterialChecks if a material is present in the model.- Parameters:
- name- The name of the material
- Returns:
- true if the material is present, false otherwise
 
- 
getMaterialResolves the final texture name, taking into account texture aliases and replacements.- Parameters:
- name- The name of the material
- Returns:
- The material, or the missing texture if not found
 
- 
isGui3dboolean isGui3d()Returns true if this model should render in 3D in a GUI, false otherwise.- Returns:
- true if this model should render in 3D in a GUI, false otherwise
 
- 
useBlockLightboolean useBlockLight()Returns true if block lighting should be used for this model, false otherwise.- Returns:
- true if block lighting should be used for this model, false otherwise
 
- 
useAmbientOcclusionboolean useAmbientOcclusion()Returns true if per-vertex ambient occlusion should be used for this model, false otherwise.- Returns:
- true if per-vertex ambient occlusion should be used for this model, false otherwise
 
- 
getTransformsItemTransforms getTransforms()Returns the transforms for display in item form..- Returns:
- the transforms for display in item form.
 
- 
getRootTransformTransformation getRootTransform()Returns the root transformation to be applied to all variants of this model, regardless of item transforms..- Returns:
- the root transformation to be applied to all variants of this model, regardless of item transforms.
 
- 
getRenderTypeHintReturns a hint of the render type this model should use. Custom loaders may ignore this..- Returns:
- a hint of the render type this model should use. Custom loaders may ignore this.
 
- 
isComponentVisibleQueries the visibility of a component of this model.- Parameters:
- component- The component for which to query visibility
- fallback- The default visibility if an override isn't found
- Returns:
- The visibility of the component
 
- 
getRenderTypeReturns aRenderTypeGroupwith the given name, or the empty group if not found..- Returns:
- a RenderTypeGroupwith the given name, or the empty group if not found.
 
 
-