Enum Tag
- java.lang.Object
-
- java.lang.Enum<Tag>
-
- com.hazebyte.crate.api.crate.reward.Tag
-
- All Implemented Interfaces:
Serializable
,Comparable<Tag>
public enum Tag extends Enum<Tag>
States that determine the attributes of aReward
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Represents a persistent reward.BROADCAST
Represents a broadcast message.BROADCAST_INLINE
Represents an concatenated broadcast message.CHANCE
Represents a chance value.COMMAND
Represents a command.DISPLAY
Represents an display item.ITEM
Represents an item.LEGACY_MESSAGE
LEGACY_PERM
LEGACY_PREVENT_DUPLICATE
MESSAGE
Represents an opening message.PERMISSION
Represents a permission.PREVENT_DUPLICATE
Represents a unique reward.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
contains(String str)
String
getName()
static Tag
getTagFromValue(String str)
String
toString()
static Tag
valueOf(String name)
Returns the enum constant of this type with the specified name.static Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMAND
public static final Tag COMMAND
Represents a command.
-
ITEM
public static final Tag ITEM
Represents an item.
-
CHANCE
public static final Tag CHANCE
Represents a chance value.
-
DISPLAY
public static final Tag DISPLAY
Represents an display item.
-
PERMISSION
public static final Tag PERMISSION
Represents a permission.
-
MESSAGE
public static final Tag MESSAGE
Represents an opening message.
-
BROADCAST
public static final Tag BROADCAST
Represents a broadcast message.
-
BROADCAST_INLINE
public static final Tag BROADCAST_INLINE
Represents an concatenated broadcast message.
-
PREVENT_DUPLICATE
public static final Tag PREVENT_DUPLICATE
Represents a unique reward.
-
ALWAYS
public static final Tag ALWAYS
Represents a persistent reward.
-
LEGACY_PERM
public static final Tag LEGACY_PERM
-
LEGACY_MESSAGE
public static final Tag LEGACY_MESSAGE
-
LEGACY_PREVENT_DUPLICATE
public static final Tag LEGACY_PREVENT_DUPLICATE
-
-
Method Detail
-
values
public static Tag[] 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 (Tag c : Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tag 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 nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
contains
public static boolean contains(String str)
-
-