Group

Represents a group of elements, forming a bone in the hierarchy.

Since

1.15.2

Parameters

uuid

the UUID of the group

name

the name of the group/bone

origin

the pivot point of the group

rotation

the rotation of the group

children

the list of child elements

visibility

whether the group is visible

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val MESH_PIXEL: String = "mesh_pixel"
Link copied to clipboard
val MESH_TRIANGLE_DUPLEX: String = "mesh_triangle_duplex"
Link copied to clipboard
val MESH_TRIANGLE_SINGLE: String = "mesh_triangle_single"

Functions

Link copied to clipboard
@Nullable
open fun buildLegacyJson(@NotNull obfuscator: @NotNull PackObfuscator.Pair, @NotNull context: @NotNull BlueprintLoadContext): @Nullable BlueprintJson
Builds the JSON representation for legacy clients (1.21.3 or under).
Link copied to clipboard
@Nullable
open fun buildMeshItemModel(@NotNull context: @NotNull BlueprintLoadContext): @Nullable JsonObject
Builds the JSON representation for a mesh-based item model.
Link copied to clipboard
@Nullable
@Unmodifiable
open fun buildModernJson(@NotNull obfuscator: @NotNull PackObfuscator.Pair, @NotNull context: @NotNull BlueprintLoadContext): @Nullable @Unmodifiable List<BlueprintJson>
Builds the JSON representation for modern clients.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@Nullable
open fun hitBox(): @Nullable ModelBoundingBox
Calculates the bounding box for this group to be used as a hitbox.
Link copied to clipboard
@NotNull
abstract fun name(): @NotNull BoneName
Returns the name of the bone.
Link copied to clipboard
@NotNull
open fun origin(): @NotNull Float3
Returns the origin with inverted X and Z axes.
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull Float3
Returns the rotation of the element.
Link copied to clipboard
open fun scale(): Float
Calculates the required scale for the cubes in this group.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
abstract fun uuid(): @NotNull UUID
Returns the UUID of the bone.
Link copied to clipboard
open fun visibility(): Boolean
Checks if the element is visible.