ModelDisplay

An item-display packet adapter

Functions

Link copied to clipboard
abstract fun billboard(@NotNull billboard: @NotNull Display.Billboard)
Sets display billboard
Link copied to clipboard
abstract fun brightness(block: Int, sky: Int)
Sets brightness overrides
Link copied to clipboard
@NotNull
abstract fun createTransformer(): @NotNull DisplayTransformer
Creates transformer
Link copied to clipboard
abstract fun display(@NotNull transform: @NotNull ItemDisplay.ItemDisplayTransform)
Sets item billboard
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 id(): Int
Gets entity id
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 sendDirtyEntityData(@NotNull bundler: @NotNull PacketBundler)
Sends entity data
Link copied to clipboard
abstract fun sendEntityData(showItem: Boolean, @NotNull bundler: @NotNull PacketBundler)
Sends entity data
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
@NotNull
abstract fun uuid(): @NotNull UUID
Gets entity uuid
Link copied to clipboard
abstract fun viewRange(range: Float)
Sets view range