java.lang.Object
com.github.retrooper.packetevents.protocol.advancements.AdvancementDisplay

public final class AdvancementDisplay extends Object
  • Field Details

  • Constructor Details

    • AdvancementDisplay

      public AdvancementDisplay(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component description, ItemStack icon, AdvancementType type, @Nullable @Nullable ResourceLocation background, boolean showToast, boolean hidden, float x, float y)
  • Method Details

    • read

      public static AdvancementDisplay read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, AdvancementDisplay display)
    • packFlags

      public int packFlags()
    • getTitle

      public net.kyori.adventure.text.Component getTitle()
    • setTitle

      public void setTitle(net.kyori.adventure.text.Component title)
    • getDescription

      public net.kyori.adventure.text.Component getDescription()
    • setDescription

      public void setDescription(net.kyori.adventure.text.Component description)
    • getIcon

      public ItemStack getIcon()
    • setIcon

      public void setIcon(ItemStack icon)
    • getType

      public AdvancementType getType()
    • setType

      public void setType(AdvancementType type)
    • isShowToast

      public boolean isShowToast()
    • setShowToast

      public void setShowToast(boolean showToast)
    • isHidden

      public boolean isHidden()
    • setHidden

      public void setHidden(boolean hidden)
    • getBackground

      @Nullable public @Nullable ResourceLocation getBackground()
    • setBackground

      public void setBackground(@Nullable @Nullable ResourceLocation background)
    • getX

      public float getX()
    • setX

      public void setX(float x)
    • getY

      public float getY()
    • setY

      public void setY(float y)