Enum Class AdvancementFlag

java.lang.Object
java.lang.Enum<AdvancementFlag>
eu.endercentral.crazy_advancements.advancement.AdvancementFlag
All Implemented Interfaces:
Serializable, Comparable<AdvancementFlag>, Constable

public enum AdvancementFlag extends Enum<AdvancementFlag>
Alters the behavior of Advancements
Author:
Axel
  • Enum Constant Details

    • SHOW_TOAST

      public static final AdvancementFlag SHOW_TOAST
      Advancements with this Flag will display a Toast upon Completion
    • DISPLAY_MESSAGE

      public static final AdvancementFlag DISPLAY_MESSAGE
      Advancements with this Flag will broadcast a Message in Chat upon Completion
    • SEND_WITH_HIDDEN_BOOLEAN

      public static final AdvancementFlag SEND_WITH_HIDDEN_BOOLEAN
      Advancements with this Flag will be sent with the hidden boolean set to true allowing the creation of empty Advancement Tabs or to draw lines
  • Field Details

    • TOAST_AND_MESSAGE

      public static final AdvancementFlag[] TOAST_AND_MESSAGE
      Shorthand for combining Toast Notifications and Chat Messages
  • Method Details

    • values

      public static AdvancementFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AdvancementFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null