Package net.glowstone.advancement
Class GlowAdvancementDisplay
java.lang.Object
net.glowstone.advancement.GlowAdvancementDisplay
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGlowAdvancementDisplay
(TextMessage title, TextMessage description, org.bukkit.inventory.ItemStack icon, GlowAdvancementDisplay.FrameType type, org.bukkit.NamespacedKey background, float x, float y) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
io.netty.buffer.ByteBuf
encode
(io.netty.buffer.ByteBuf buf, boolean hasBackgroundTexture, boolean showToast, boolean hidden) Writes this notification to the givenByteBuf
.boolean
org.bukkit.NamespacedKey
The optional directory for the background to use in this advancement tab (used only for the root advancement)The description for this advancementorg.bukkit.inventory.ItemStack
getIcon()
The icon to represent this advancementgetTitle()
The title for this advancementgetType()
The type of frame for the iconfloat
getX()
The x coordinate of the advancementfloat
getY()
The y coordinate of the advancementint
hashCode()
toString()
-
Constructor Details
-
GlowAdvancementDisplay
public GlowAdvancementDisplay(TextMessage title, TextMessage description, org.bukkit.inventory.ItemStack icon, GlowAdvancementDisplay.FrameType type, org.bukkit.NamespacedKey background, float x, float y)
-
-
Method Details
-
encode
public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf buf, boolean hasBackgroundTexture, boolean showToast, boolean hidden) throws IOException Writes this notification to the givenByteBuf
.- Parameters:
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 completed- Returns:
buf
, with this notification written to it- Throws:
IOException
- if a string is too long
-
getTitle
The title for this advancement -
getDescription
The description for this advancement -
getIcon
public org.bukkit.inventory.ItemStack getIcon()The icon to represent this advancement -
getType
The type of frame for the icon -
getBackground
public org.bukkit.NamespacedKey getBackground()The optional directory for the background to use in this advancement tab (used only for the root advancement) -
getX
public float getX()The x coordinate of the advancement -
getY
public float getY()The y coordinate of the advancement -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-