ModelElement

@ApiStatus.Internal
class ModelElement : Record

A raw model's element (cube).

Parameters

name

name

type

type

uuid

cube's uuid

from

min-position

to

max-position

inflate

inflate

rotation

rotation

origin

origin

faces

uv

_visibility

visibility

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
enum Type
Element type

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
@NotNull
open fun from(): @NotNull Float3
Gets from-position
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun hasTexture(): Boolean
Checks this model has texture
Link copied to clipboard
open fun isSupported(): Boolean
Checks this element is supported in the Minecraft client.
Link copied to clipboard
open fun max(): Float
Gets max length of this cube
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull Float3
Gets rotation
Link copied to clipboard
@NotNull
open fun to(): @NotNull Float3
Gets to-position
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun type(): @NotNull ModelElement.Type
Gets element type
Link copied to clipboard
open fun visibility(): Boolean
Gets visibility