Enum IResourcePackSelectEvent.Status
java.lang.Object
java.lang.Enum<IResourcePackSelectEvent.Status>
de.themoep.resourcepacksplugin.core.events.IResourcePackSelectEvent.Status
- All Implemented Interfaces:
Serializable
,Comparable<IResourcePackSelectEvent.Status>
,java.lang.constant.Constable
- Enclosing interface:
- IResourcePackSelectEvent
The status of the select event
SUCCESS
- Pack found and is not nullNO_PERMISSION
- Selection failed because the player does not have the permission for the packWRONG_VERSION
- Selection failed because there is not compatible packNO_PERM_AND_WRONG_VERSION
- Both failures happenedALREADY_APPLIED
- The player already had that pack applied
IS_EMPTY
- The player already had the empty pack applied
UNKNOWN
- We don't know why it failed-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static IResourcePackSelectEvent.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
NO_PERMISSION
-
WRONG_VERSION
-
NO_PERM_AND_WRONG_VERSION
-
ALREADY_APPLIED
-
IS_EMPTY
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-