Class GlowAdvancementDisplay


public class GlowAdvancementDisplay extends Object
  • Constructor Details

  • 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 given ByteBuf.
      buf - the buffer to write to
      hasBackgroundTexture - Whether the advancement notification has a background texture
      showToast - Whether or not to show the toast pop up after completing this advancement
      hidden - Whether or not to hide this advancement and all its children from the advancement screen until this advancement have been completed
      buf, with this notification written to it
      IOException - if a string is too long
    • getTitle

      public TextMessage getTitle()
      The title for this advancement
    • getDescription

      public TextMessage 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

      public boolean equals(Object o)
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      hashCode in class Object
    • toString

      public String toString()
      toString in class Object