Package kr.toxicity.model.api.nms
Interface ModelDisplay
- All Superinterfaces:
Identifiable
An item-display packet adapter
-
Method Summary
Modifier and TypeMethodDescriptionvoidbillboard(org.bukkit.entity.Display.Billboard billboard) Sets display billboardvoidbrightness(int block, int sky) Sets brightness overrides@NotNull DisplayTransformerCreates transformervoiddisplay(org.bukkit.entity.ItemDisplay.ItemDisplayTransform transform) Sets item billboardvoidglow(boolean glow) Toggles glow.voidglowColor(int glowColor) Sets glow color.booleanChecks this display is invisiblevoidinvisible(boolean invisible) Sets the invisibility of this displayvoiditem(@NotNull org.bukkit.inventory.ItemStack itemStack) Sets displayed itemvoidmoveDuration(int duration) Sets pos-rot movement interpolation durationvoidremove(@NotNull PacketBundler bundler) Removes this displayvoidrotate(@NotNull ModelRotation rotation, @NotNull PacketBundler bundler) Rotates this displayvoidsendDirtyEntityData(@NotNull PacketBundler bundler) Sends entity datavoidsendEntityData(boolean showItem, @NotNull PacketBundler bundler) Sends entity datavoidshadowRadius(float radius) Sets shadow radiusvoidspawn(boolean showItem, @NotNull PacketBundler bundler) Spawns this displaydefault voidspawn(@NotNull PacketBundler bundler) Spawns this displayvoidsync(@NotNull EntityAdapter entity) Syncs entity data of source entityvoidsyncPosition(@NotNull EntityAdapter adapter, @NotNull PacketBundler bundler) Syncs entity positionvoidteleport(@NotNull org.bukkit.Location location, @NotNull PacketBundler bundler) Teleports this displayvoidviewRange(float range) Sets view rangeMethods inherited from interface kr.toxicity.model.api.nms.Identifiable
id, uuid
-
Method Details
-
invisible
boolean invisible()Checks this display is invisible- Returns:
- invisible
-
invisible
void invisible(boolean invisible) Sets the invisibility of this display- Parameters:
invisible- is invisible
-
rotate
Rotates this display- Parameters:
rotation- rotationbundler- packet bundler
-
sync
Syncs entity data of source entity- Parameters:
entity- source
-
moveDuration
void moveDuration(int duration) Sets pos-rot movement interpolation duration- Parameters:
duration- duration
-
display
void display(@NotNull org.bukkit.entity.ItemDisplay.ItemDisplayTransform transform) Sets item billboard- Parameters:
transform- billboard
-
spawn
Spawns this display- Parameters:
bundler- packet bundler
-
spawn
Spawns this display- Parameters:
showItem- show itembundler- packet bundler
-
remove
Removes this display- Parameters:
bundler- packet bundler
-
teleport
void teleport(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull PacketBundler bundler) Teleports this display- Parameters:
location- locationbundler- packet bundler
-
item
void item(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Sets displayed item- Parameters:
itemStack- item
-
createTransformer
Creates transformer- Returns:
- transformer
-
sendDirtyEntityData
Sends entity data- Parameters:
bundler- packet bundler
-
sendEntityData
Sends entity data- Parameters:
showItem- show itembundler- packet bundler
-
brightness
void brightness(int block, int sky) Sets brightness overrides- Parameters:
block- blocksky- sky
-
viewRange
void viewRange(float range) Sets view range- Parameters:
range- range
-
shadowRadius
void shadowRadius(float radius) Sets shadow radius- Parameters:
radius- radius
-
syncPosition
Syncs entity position- Parameters:
adapter- adapterbundler- packet bundler
-
glow
void glow(boolean glow) Toggles glow.- Parameters:
glow- glow
-
glowColor
void glowColor(int glowColor) Sets glow color.- Parameters:
glowColor- hex glow color
-
billboard
void billboard(@NotNull org.bukkit.entity.Display.Billboard billboard) Sets display billboard- Parameters:
billboard- billboard
-