public class GlowAdvancementDisplay extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GlowAdvancementDisplay.FrameType |
| Constructor and Description |
|---|
GlowAdvancementDisplay(TextMessage title,
TextMessage description,
org.bukkit.inventory.ItemStack icon,
GlowAdvancementDisplay.FrameType type,
org.bukkit.NamespacedKey background,
float x,
float y) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBuf buf,
boolean hasBackgroundTexture,
boolean showToast,
boolean hidden)
Writes this notification to the given
ByteBuf. |
boolean |
equals(Object o) |
org.bukkit.NamespacedKey |
getBackground()
The optional directory for the background to use in this advancement tab (used only for the root advancement)
|
TextMessage |
getDescription()
The description for this advancement
|
org.bukkit.inventory.ItemStack |
getIcon()
The icon to represent this advancement
|
TextMessage |
getTitle()
The title for this advancement
|
GlowAdvancementDisplay.FrameType |
getType()
The type of frame for the icon
|
float |
getX()
The x coordinate of the advancement
|
float |
getY()
The y coordinate of the advancement
|
int |
hashCode() |
String |
toString() |
public GlowAdvancementDisplay(TextMessage title, TextMessage description, org.bukkit.inventory.ItemStack icon, GlowAdvancementDisplay.FrameType type, org.bukkit.NamespacedKey background, float x, float y)
public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf buf,
boolean hasBackgroundTexture,
boolean showToast,
boolean hidden)
throws IOException
ByteBuf.buf - the buffer to write tohasBackgroundTexture - Whether the advancement notification has a background textureshowToast - Whether or not to show the toast pop up after completing this advancementhidden - Whether or not to hide this advancement and all its children from the advancement screen until this advancement have been completedbuf, with this notification written to itIOException - if a string is too longpublic TextMessage getTitle()
public TextMessage getDescription()
public org.bukkit.inventory.ItemStack getIcon()
public GlowAdvancementDisplay.FrameType getType()
public org.bukkit.NamespacedKey getBackground()
public float getX()
public float getY()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.