ModelDisplay

interface ModelDisplay

An item-display packet adapter

Functions

Link copied to clipboard
abstract fun brightness(block: Int, sky: Int)
Sets brightness overrides
Link copied to clipboard
abstract fun display(@NotNull transform: @NotNull ItemDisplay.ItemDisplayTransform)
Sets item billboard
Link copied to clipboard
abstract fun frame(frame: Int)
Sets transformation interpolation duration
Link copied to clipboard
abstract fun glow(glow: Boolean)
Toggles glow.
Link copied to clipboard
abstract fun glowColor(glowColor: Int)
Sets glow color.
Link copied to clipboard
abstract fun invisible(): Boolean
Checks this display is invisible
abstract fun invisible(invisible: Boolean)
Sets the invisibility of this display
Link copied to clipboard
abstract fun item(@NotNull itemStack: @NotNull ItemStack)
Sets displayed item
Link copied to clipboard
abstract fun moveDuration(duration: Int)
Sets pos-rot movement interpolation duration
Link copied to clipboard
abstract fun remove(@NotNull bundler: @NotNull PacketBundler)
Removes this display
Link copied to clipboard
abstract fun rotate(@NotNull rotation: @NotNull ModelRotation, @NotNull bundler: @NotNull PacketBundler)
Rotates this display
Link copied to clipboard
abstract fun sendEntityData(@NotNull bundler: @NotNull PacketBundler)
abstract fun sendEntityData(showItem: Boolean, @NotNull bundler: @NotNull PacketBundler)
Sends entity data
Link copied to clipboard
abstract fun sendTransformation(@NotNull bundler: @NotNull PacketBundler)
Sends transformation
Link copied to clipboard
abstract fun shadowRadius(radius: Float)
Sets shadow radius
Link copied to clipboard
open fun spawn(@NotNull bundler: @NotNull PacketBundler)
abstract fun spawn(showItem: Boolean, @NotNull bundler: @NotNull PacketBundler)
Spawns this display
Link copied to clipboard
abstract fun sync(@NotNull entity: @NotNull EntityAdapter)
Syncs entity data of source entity
Link copied to clipboard
abstract fun syncPosition(@NotNull adapter: @NotNull EntityAdapter, @NotNull bundler: @NotNull PacketBundler)
Syncs entity position
Link copied to clipboard
abstract fun teleport(@NotNull location: @NotNull Location, @NotNull bundler: @NotNull PacketBundler)
Teleports this display
Link copied to clipboard
abstract fun transform(@NotNull position: @NotNull Vector3f, @NotNull scale: @NotNull Vector3f, @NotNull rotation: @NotNull Quaternionf)
Transforms this display
Link copied to clipboard
abstract fun viewRange(range: Float)
Sets view range