Package fr.andross.banitem.actions
Enum Class BanDataType
- All Implemented Interfaces:
Serializable
,Comparable<BanDataType>
,Constable
A simple enum indicating what kind of data is used
- Version:
- 3.3
- Author:
- Andross
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionType: Long (millis) Used to check if the banned item has a cooldownType: String Used to get the custom/meta item nameType: Set ofEnchantmentWrapper
Used to check if the enchantments are banned on an itemType: Set ofEntityType
Used to check if the ban will applies on this entityType: Set ofGameMode
Used to check if the ban applies on current player gamemodeType: Set ofInventoryType
Used to check if the ban will applies if the source inventory is included into this setType: Set ofInventoryType
Used to check if the ban will applies if the destination inventory is included into this setType: boolean Used to check if a log message will be sent to players with log activatedType: Set ofMaterial
Used to check if the ban will applies if a material is in the setType: List of (already colored) String Used to get the ban message(s)Type: String Used to get a custom permission for an actionType: Set ofProtectedRegion
Used to check if the ban applies into the regionType: List of String Used to run commands when the banned action occurs -
Method Summary
Modifier and TypeMethodDescriptiongetName()
static BanDataType
Returns the enum constant of this class with the specified name.static BanDataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COOLDOWN
Type: Long (millis) Used to check if the banned item has a cooldown -
CUSTOMNAME
Type: String Used to get the custom/meta item name -
ENCHANTMENT
Type: Set ofEnchantmentWrapper
Used to check if the enchantments are banned on an item -
ENTITY
Type: Set ofEntityType
Used to check if the ban will applies on this entity -
GAMEMODE
Type: Set ofGameMode
Used to check if the ban applies on current player gamemode -
INVENTORY_FROM
Type: Set ofInventoryType
Used to check if the ban will applies if the source inventory is included into this set -
INVENTORY_TO
Type: Set ofInventoryType
Used to check if the ban will applies if the destination inventory is included into this set -
LOG
Type: boolean Used to check if a log message will be sent to players with log activated -
MATERIAL
Type: Set ofMaterial
Used to check if the ban will applies if a material is in the set -
MESSAGE
Type: List of (already colored) String Used to get the ban message(s) -
PERMISSION
Type: String Used to get a custom permission for an action -
REGION
Type: Set ofProtectedRegion
Used to check if the ban applies into the region -
RUN
Type: List of String Used to run commands when the banned action occurs
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getName
-