Enum Class BanDataType

java.lang.Object
java.lang.Enum<BanDataType>
fr.andross.banitem.actions.BanDataType
All Implemented Interfaces:
Serializable, Comparable<BanDataType>, Constable

public enum BanDataType extends Enum<BanDataType>
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 Constants
    Enum Constant
    Description
    Type: Long (millis) Used to check if the banned item has a cooldown
    Type: String Used to get the custom/meta item name
    Type: Set of EnchantmentWrapper Used to check if the enchantments are banned on an item
    Type: Set of EntityType Used to check if the ban will applies on this entity
    Type: Set of GameMode Used to check if the ban applies on current player gamemode
    Type: Set of InventoryType Used to check if the ban will applies if the source inventory is included into this set
    Type: Set of InventoryType Used to check if the ban will applies if the destination inventory is included into this set
    Type: boolean Used to check if a log message will be sent to players with log activated
    Type: Set of Material Used to check if the ban will applies if a material is in the set
    Type: List of (already colored) String Used to get the ban message(s)
    Type: String Used to get a custom permission for an action
    Type: Set of ProtectedRegion Used to check if the ban applies into the region
    Type: List of String Used to run commands when the banned action occurs
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    static BanDataType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • COOLDOWN

      public static final BanDataType COOLDOWN
      Type: Long (millis) Used to check if the banned item has a cooldown
    • CUSTOMNAME

      public static final BanDataType CUSTOMNAME
      Type: String Used to get the custom/meta item name
    • ENCHANTMENT

      public static final BanDataType ENCHANTMENT
      Type: Set of EnchantmentWrapper Used to check if the enchantments are banned on an item
    • ENTITY

      public static final BanDataType ENTITY
      Type: Set of EntityType Used to check if the ban will applies on this entity
    • GAMEMODE

      public static final BanDataType GAMEMODE
      Type: Set of GameMode Used to check if the ban applies on current player gamemode
    • INVENTORY_FROM

      public static final BanDataType INVENTORY_FROM
      Type: Set of InventoryType Used to check if the ban will applies if the source inventory is included into this set
    • INVENTORY_TO

      public static final BanDataType INVENTORY_TO
      Type: Set of InventoryType Used to check if the ban will applies if the destination inventory is included into this set
    • LOG

      public static final BanDataType LOG
      Type: boolean Used to check if a log message will be sent to players with log activated
    • MATERIAL

      public static final BanDataType MATERIAL
      Type: Set of Material Used to check if the ban will applies if a material is in the set
    • MESSAGE

      public static final BanDataType MESSAGE
      Type: List of (already colored) String Used to get the ban message(s)
    • PERMISSION

      public static final BanDataType PERMISSION
      Type: String Used to get a custom permission for an action
    • REGION

      public static final BanDataType REGION
      Type: Set of ProtectedRegion Used to check if the ban applies into the region
    • RUN

      public static final BanDataType RUN
      Type: List of String Used to run commands when the banned action occurs
  • Method Details

    • values

      public static BanDataType[] 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

      public static BanDataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      @NotNull public String getName()