ModelDisplay
Represents an item display entity used for rendering model parts.
This interface abstracts the NMS implementation of item displays, allowing for manipulation of position, rotation, scale, and other display properties.
Since
1.15.2
Functions
Link copied to clipboard
Sets the billboard constraint for the display.
Link copied to clipboard
Sets the brightness override for the display.
Link copied to clipboard
Creates a transformer for animating this display.
Link copied to clipboard
Sets the item display transform type.
Link copied to clipboard
Sets the item stack to be displayed.
Link copied to clipboard
Sets the duration for position/rotation interpolation.
Link copied to clipboard
Removes this display.
Link copied to clipboard
abstract fun rotate(@NotNull rotation: @NotNull ModelRotation, @NotNull bundler: @NotNull PacketBundler)
Rotates this display to a specific orientation.
Link copied to clipboard
Sends updated entity data if it has changed.
Link copied to clipboard
Sends entity data, optionally showing the item.
Link copied to clipboard
abstract fun sendPosition(@NotNull adapter: @NotNull BaseEntity, @NotNull bundler: @NotNull PacketBundler)
Sends the position of the display relative to an entity adapter.
Link copied to clipboard
Sets the shadow radius of the display.
Link copied to clipboard
Spawns this display using the provided packet bundler.
Spawns this display, optionally showing the item.
Link copied to clipboard
Spawns this display and sends initial entity data.
Link copied to clipboard
Synchronizes this display's position with a location.
Link copied to clipboard
Synchronizes the potion effect (glowing, etc.) from the base entity to this display.
Link copied to clipboard
abstract fun teleport(@NotNull location: @NotNull PlatformLocation, @NotNull bundler: @NotNull PacketBundler)
Teleports this display to a new location.