Display

@Serializable
data class Display(val thirdPersonRightHand: Model.Display.Entry? = null, val thirdPersonLeftHand: Model.Display.Entry? = null, val firstPersonRightHand: Model.Display.Entry? = null, val firstPersonLeftHand: Model.Display.Entry? = null, val head: Model.Display.Entry? = null, val gui: Model.Display.Entry? = null, val ground: Model.Display.Entry? = null, val fixed: Model.Display.Entry? = null)

The display settings for an item model, depending on the context.

Parameters

thirdPersonRightHand

The display settings for right hand in third person, or null if unspecified.

thirdPersonLeftHand

The display settings for left hand in third person, or null if unspecified.

firstPersonRightHand

The display settings for right hand in first person, or null if unspecified.

firstPersonLeftHand

The display settings for left hand in first person, or null if unspecified.

head

The display settings for the head, or null if unspecified.

gui

The display settings for the GUI, or null if unspecified.

ground

The display settings for the ground, or null if unspecified.

fixed

The display settings for fixed position, or null if unspecified.

Constructors

Link copied to clipboard
constructor(thirdPersonRightHand: Model.Display.Entry? = null, thirdPersonLeftHand: Model.Display.Entry? = null, firstPersonRightHand: Model.Display.Entry? = null, firstPersonLeftHand: Model.Display.Entry? = null, head: Model.Display.Entry? = null, gui: Model.Display.Entry? = null, ground: Model.Display.Entry? = null, fixed: Model.Display.Entry? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class Entry(val rotation: Vector3dc = Vector3d(0.0, 0.0, 0.0), val translation: Vector3dc = Vector3d(0.0, 0.0, 0.0), val scale: Vector3dc = Vector3d(1.0, 1.0, 1.0))

The display settings for an item model.

Link copied to clipboard
@Serializable
enum Position : Enum<Model.Display.Position>

The different contexts in a Display.

Properties

Link copied to clipboard

The effective display settings for the left hand in first person, defaulting to effectiveFirstPersonRightHand if unspecified.

Link copied to clipboard

The effective display settings for the right hand in first person, defaulting to an identity Entry if unspecified.

Link copied to clipboard

The effective display settings for fixed position, defaulting to an identity Entry if unspecified.

Link copied to clipboard

The effective display settings for the ground, defaulting to an identity Entry if unspecified.

Link copied to clipboard

The effective display settings for the GUI, defaulting to an identity Entry if unspecified.

Link copied to clipboard

The effective display settings for the head, defaulting to an identity Entry if unspecified.

Link copied to clipboard

The effective display settings for the left hand in third person, defaulting to effectiveThirdPersonRightHand if unspecified.

Link copied to clipboard

The effective display settings for the right hand in third person, defaulting to an identity Entry if unspecified.

Link copied to clipboard
@SerialName(value = "firstperson_lefthand")
val firstPersonLeftHand: Model.Display.Entry? = null
Link copied to clipboard
@SerialName(value = "firstperson_righthand")
val firstPersonRightHand: Model.Display.Entry? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "thirdperson_lefthand")
val thirdPersonLeftHand: Model.Display.Entry? = null
Link copied to clipboard
@SerialName(value = "thirdperson_righthand")
val thirdPersonRightHand: Model.Display.Entry? = null

Functions

Link copied to clipboard

Converts this Display to a map of Position to effective Entry.

Link copied to clipboard
Link copied to clipboard

Merges this Display with another display, giving precedence to override's non-null entries.