Package net.luckperms.api.event.source
Enum Source.Type
- java.lang.Object
-
- java.lang.Enum<Source.Type>
-
- net.luckperms.api.event.source.Source.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Source.Type>
- Enclosing interface:
- Source
public static enum Source.Type extends Enum<Source.Type>
Represents a type of source
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITYRepresents anPlatformEntitysourceUNKNOWNRepresents an unknown source
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Source.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Source.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTITY
public static final Source.Type ENTITY
Represents anPlatformEntitysource- See Also:
EntitySource
-
UNKNOWN
public static final Source.Type UNKNOWN
Represents an unknown source
-
-
Method Detail
-
values
public static Source.Type[] 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 (Source.Type c : Source.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Source.Type 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
-
-