Class GlowAdvancementDisplay

java.lang.Object
net.glowstone.advancement.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.
      Parameters:
      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
      Returns:
      buf, with this notification written to it
      Throws:
      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)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object