Interface GeometryComponent.Builder
- Enclosing interface:
GeometryComponent
public static interface GeometryComponent.Builder
A builder for GeometryComponent
- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionboneVisibility(@Nullable Map<String, String> boneVisibility) Sets the bone visibility of the geometry.build()Creates the GeometryComponent.Sets the identifier of the block culling rules, defined in a resource pack'sblock_cullingfolder.cullingLayer(@Nullable String cullingLayer) Sets the culling layer, used by block culling rules with thesame_culling_layercondition.identifier(String identifier) Sets the identifier of the geometry.
-
Method Details
-
identifier
Sets the identifier of the geometry.- Parameters:
identifier- the identifier of the geometry- Returns:
- this builder
- Since:
- 2.2.0
- See Also:
-
boneVisibility
Sets the bone visibility of the geometry.- Parameters:
boneVisibility- the bone visibility of the geometry- Returns:
- this builder
- Since:
- 2.2.0
- See Also:
-
culling
Sets the identifier of the block culling rules, defined in a resource pack'sblock_cullingfolder.- Parameters:
culling- the identifier of the block culling rules- Returns:
- this builder
- Since:
- 2.12.2
- See Also:
-
cullingLayer
Sets the culling layer, used by block culling rules with thesame_culling_layercondition.- Parameters:
cullingLayer- the culling layer- Returns:
- this builder
- Since:
- 2.12.2
- See Also:
-
build
GeometryComponent build()Creates the GeometryComponent.- Returns:
- the GeometryComponent
- Since:
- 2.2.0
-