Class FancyAdvancementDisplay

java.lang.Object
com.fren_gor.ultimateAdvancementAPI.advancement.display.AdvancementDisplay
com.fren_gor.ultimateAdvancementAPI.advancement.display.FancyAdvancementDisplay

public class FancyAdvancementDisplay extends AdvancementDisplay
The FancyAdvancementDisplay class provides a fancier graphical aspect to advancements than AdvancementDisplay. The differences are the following:
  • Field Details

    • DEFAULT_TITLE_COLOR

      public static final ChatColor DEFAULT_TITLE_COLOR
      The default color of the title.
    • DEFAULT_DESCRIPTION_COLOR

      public static final ChatColor DEFAULT_DESCRIPTION_COLOR
      The default color of the description.
  • Constructor Details

    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull Material icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull String... description)
      Creates a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The material of the advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      description - The description of the advancement.
    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull Material icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull List<String> description)
      Creates a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The material of the advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      description - The description of the advancement.
    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull ItemStack icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull String... description)
      Create a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      description - The description of the advancement.
    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull ItemStack icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull List<String> description)
      Create a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      description - The description of the advancement.
    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull ItemStack icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull ChatColor defaultTitleColor, @NotNull @NotNull ChatColor defaultDescriptionColor, @NotNull @NotNull String... description)
      Create a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      defaultTitleColor - The default color of the title.
      defaultDescriptionColor - The default color of the description.
      description - The description of the advancement.
    • FancyAdvancementDisplay

      public FancyAdvancementDisplay(@NotNull @NotNull ItemStack icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, boolean showToast, boolean announceChat, float x, float y, @NotNull @NotNull ChatColor defaultTitleColor, @NotNull @NotNull ChatColor defaultDescriptionColor, @NotNull @NotNull List<String> description)
      Create a new FancyAdvancementDisplay.

      The advancement is positioned by the x and y coordinates in the advancement GUI. The origin is placed in the upper-left corner of the advancement GUI. The x-axis points to the right (as usual), whereas the y-axis points downward. Thus, the x and y coordinates must be positive.

      Parameters:
      icon - The advancement's icon in the advancement GUI.
      title - The title of the advancement.
      frame - The shape of the advancement frame in the advancement GUI.
      showToast - Whether the toast notification should be sent on advancement grant.
      announceChat - Whether the advancement completion message should be sent on advancement grant.
      x - The advancement x coordinate. Must be not negative.
      y - The advancement y coordinate. Must be not negative.
      defaultTitleColor - The default color of the title.
      defaultDescriptionColor - The default color of the description.
      description - The description of the advancement.