Enum Class GiveRule

java.lang.Object
java.lang.Enum<GiveRule>
sawfowl.commandpack.api.data.kits.GiveRule
All Implemented Interfaces:
Serializable, Comparable<GiveRule>, Constable

public enum GiveRule extends Enum<GiveRule>
Rules for giving the kit.
  • Enum Constant Details

    • IGNORE_FULL_INVENTORY

      public static final GiveRule IGNORE_FULL_INVENTORY
    • USE_ENDECHEST

      public static final GiveRule USE_ENDECHEST
    • USE_BACKPACK

      public static final GiveRule USE_BACKPACK
    • DROP

      public static final GiveRule DROP
    • MESSAGE_IF_INVENTORY_FULL

      public static final GiveRule MESSAGE_IF_INVENTORY_FULL
  • Method Details

    • values

      public static GiveRule[] 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 GiveRule 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
    • getName

      public abstract String getName()
    • getRule

      public static GiveRule getRule(String name)
    • getAllRules

      public static List<String> getAllRules()