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: ItemDisplay.ItemDisplayTransform)
Sets item billboard
Link copied to clipboard
abstract fun frame(frame: Int)
Sets transformation interpolation duration
Link copied to clipboard
abstract fun item(@NotNull itemStack: ItemStack)
Sets displayed item
Link copied to clipboard
abstract fun remove(@NotNull bundler: PacketBundler)
Removes this display
Link copied to clipboard
abstract fun rotate(@NotNull rotation: ModelRotation, @NotNull bundler: PacketBundler)
Rotates this display
Link copied to clipboard
abstract fun send(@NotNull bundler: PacketBundler)
Sends all entity data
Link copied to clipboard
abstract fun spawn(@NotNull bundler: PacketBundler)
Spawns this display
Link copied to clipboard
abstract fun sync(@NotNull entity: EntityAdapter)
Syncs entity data of source entity
Link copied to clipboard
abstract fun teleport(@NotNull location: Location, @NotNull bundler: PacketBundler)
Teleports this display
Link copied to clipboard
abstract fun transform(@NotNull transformation: Transformation)
Transforms this display