Cube

Represents a standard cube element.

Since

1.15.2

Parameters

name

the name of the cube

uuid

the UUID of the cube

from

the starting coordinate (min corner)

to

the ending coordinate (max corner)

inflate

the inflation value (size increase)

rotation

the rotation of the cube

origin

the pivot point (origin) of the cube

faces

the UV mapping for the faces

lightEmission

the light emission level (0-15)

_visibility

the visibility state (null means visible)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val CAMERA: String = "camera"
The type identifier for a camera element.
Link copied to clipboard
val CUBE: String = "cube"
The type identifier for a cube element.
Link copied to clipboard
val LOCATOR: String = "locator"
The type identifier for a locator element.
Link copied to clipboard
val MESH: String = "mesh"
The type identifier for a mesh element.
Link copied to clipboard
val NULL_OBJECT: String = "null_object"
The type identifier for a null object element.
Link copied to clipboard
val PARSER: JsonDeserializer<ModelElement>
A JSON deserializer that automatically dispatches to the correct ModelElement implementation based on the "type" field.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NotNull
open fun from(): @NotNull Float3
Returns the starting coordinate (min corner).
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isSupported(): Boolean
Checks if this element type is supported by the engine.
Link copied to clipboard
open fun lightEmission(): Int
Returns the light emission level of the cube.
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull Float3
Returns the rotation of the cube.
Link copied to clipboard
@NotNull
open fun to(): @NotNull Float3
Returns the ending coordinate (max corner).
Link copied to clipboard
@NotNull
open fun toBlueprint(): @NotNull BlueprintElement
Converts this raw element into a processed BlueprintElement.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun type(): @NotNull String
Returns the type identifier of this element (e.g., "cube", "locator").
Link copied to clipboard
@NotNull
abstract fun uuid(): @NotNull String
Returns the unique identifier (UUID) of this element.
Link copied to clipboard
open fun visibility(): Boolean
Checks if the cube is visible.