Class GlowAdvancementDisplay

java.lang.Object
net.glowstone.advancement.GlowAdvancementDisplay
All Implemented Interfaces:
io.papermc.paper.advancement.AdvancementDisplay

public class GlowAdvancementDisplay extends Object implements io.papermc.paper.advancement.AdvancementDisplay
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.papermc.paper.advancement.AdvancementDisplay

    io.papermc.paper.advancement.AdvancementDisplay.Frame
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlowAdvancementDisplay(TextMessage title, TextMessage description, org.bukkit.inventory.ItemStack icon, io.papermc.paper.advancement.AdvancementDisplay.Frame type, org.bukkit.NamespacedKey background, float x, float y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.NamespacedKey
     
    protected boolean
     
    @NotNull net.kyori.adventure.text.Component
     
    boolean
     
    boolean
     
    io.netty.buffer.ByteBuf
    encode(io.netty.buffer.ByteBuf buf, boolean hasBackgroundTexture, boolean showToast, boolean hidden)
    Writes this notification to the given ByteBuf.
    boolean
     
    @NotNull io.papermc.paper.advancement.AdvancementDisplay.Frame
     
    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 advancement
    org.bukkit.inventory.ItemStack
    The icon to represent this advancement
    The title for this advancement
    io.papermc.paper.advancement.AdvancementDisplay.Frame
    The type of frame for the icon
    float
    The x coordinate of the advancement
    float
    The y coordinate of the advancement
    int
     
    @NotNull org.bukkit.inventory.ItemStack
     
    boolean
     
    @NotNull net.kyori.adventure.text.Component
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GlowAdvancementDisplay

      public GlowAdvancementDisplay(TextMessage title, TextMessage description, org.bukkit.inventory.ItemStack icon, io.papermc.paper.advancement.AdvancementDisplay.Frame 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 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
    • frame

      @NotNull public @NotNull io.papermc.paper.advancement.AdvancementDisplay.Frame frame()
      Specified by:
      frame in interface io.papermc.paper.advancement.AdvancementDisplay
    • title

      @NotNull public @NotNull net.kyori.adventure.text.Component title()
      Specified by:
      title in interface io.papermc.paper.advancement.AdvancementDisplay
    • description

      @NotNull public @NotNull net.kyori.adventure.text.Component description()
      Specified by:
      description in interface io.papermc.paper.advancement.AdvancementDisplay
    • icon

      @NotNull public @NotNull org.bukkit.inventory.ItemStack icon()
      Specified by:
      icon in interface io.papermc.paper.advancement.AdvancementDisplay
    • doesShowToast

      public boolean doesShowToast()
      Specified by:
      doesShowToast in interface io.papermc.paper.advancement.AdvancementDisplay
    • doesAnnounceToChat

      public boolean doesAnnounceToChat()
      Specified by:
      doesAnnounceToChat in interface io.papermc.paper.advancement.AdvancementDisplay
    • isHidden

      public boolean isHidden()
      Specified by:
      isHidden in interface io.papermc.paper.advancement.AdvancementDisplay
    • backgroundPath

      @Nullable public @Nullable org.bukkit.NamespacedKey backgroundPath()
      Specified by:
      backgroundPath in interface io.papermc.paper.advancement.AdvancementDisplay
    • 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

      public io.papermc.paper.advancement.AdvancementDisplay.Frame 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