Enum Category

    • Enum Constant Detail

      • OPEN

        public static final Category OPEN
        State for when a player opens a crate.
      • PERSISTENT

        public static final Category PERSISTENT
        State that represents a boundless course of action.
      • ANIMATION

        public static final Category ANIMATION
        State that represents when a player is inside an GUI animation.
      • PUSHBACK

        public static final Category PUSHBACK
        State that represents when a player is pushed back.
      • INSPECT

        public static final Category INSPECT
        State that represents when a player left clicks a crate.
      • END

        public static final Category END
        State that represents when a player closes a GUI animation.
      • REWARD

        public static final Category REWARD
        State that represents when a player receives a reward.
    • Method Detail

      • values

        public static Category[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Category c : Category.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Category valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null