Enum Class BanAction

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

public enum BanAction extends Enum<BanAction>
List of available ban actions
Version:
3.4
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
    When the player try to place the item on an armorstand Special data: none
    When the player try to take an item from an armorstand Special data: none
    When the player attack (left click on) an entity with the item Special data: entity - the EntityType of the attacked entity
    When the player edits or signs a book and quill item Special data: none
    When the player try to break (left click on) a block Special data: material - the Material item in the hand of the player
    When an item is brewed into a brewer Special data: none
    When the player use left click (either on block or on air) with the item Special data: material - the Material item if a block is clicked
    When the player consume an item (food) Special data: none
    When the player try to craft an item (crafting result) Special data: none
    When the player open or close an inventory, it will delete the banned items Special data: none
    When the item is dispensed from a block Special data: none
    When the player try to drop an item Special data: none
    This will disable a block break drops if any drops contains the banned item Special data: material - the Material of the item in player hand
    When a player enchants the item Special data: set of EnchantmentWrapper - the EnchantmentWrapper applied to the item
    When an entity dies and drop the item Special data: entity - the EntityType of the entity
    When a player right click on an entity Special data: entity - the EntityType of the right clicked entity
    When a player try to fill an item (like a bucket) Special data: material - the Material collected
    When a player try to use (activate) an elytra Special data: none
    When a player try to place a hanging item (itemframe, painting...) Special data: entity - the EntityType created by this hanging place
    When a player try to hold the item Special data: none
    When a player use right click on this item Special data: material - the Material in the player hand
    When a player try to click the item in its inventory Special data: inventory-from the InventoryType clicked
    When a player has an item repaired via the mending enchantment Special data: none
    When a player try to pickup an item Special data: none
    When a player try to place a block Special data: none
    When a player try to rename an item, either with a command or with an anvil Special data: none
    When an item is smelted into a furnace Special data: none
    When the recipe of an item is completed inside a smithing table.
    When a player try to swap an item in hands.
    When an item is transfered from an inventory to another Special data: - inventory-from - the InventoryType where the item comes from - inventory-to - the InventoryType where the item goes to
    When a player unfill a bucket Special data: material - the Material fluid type
    When a player use (right click) the item Special data: material - the Material clicked, if one clicked
    When a player try to wear an item Special data: none
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static BanAction
    Returns the enum constant of this class with the specified name.
    static BanAction[]
    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

    • ARMORSTANDPLACE

      public static final BanAction ARMORSTANDPLACE
      When the player try to place the item on an armorstand Special data: none
    • ARMORSTANDTAKE

      public static final BanAction ARMORSTANDTAKE
      When the player try to take an item from an armorstand Special data: none
    • ATTACK

      public static final BanAction ATTACK
      When the player attack (left click on) an entity with the item Special data: entity - the EntityType of the attacked entity
    • BOOKEDIT

      public static final BanAction BOOKEDIT
      When the player edits or signs a book and quill item Special data: none
    • BREAK

      public static final BanAction BREAK
      When the player try to break (left click on) a block Special data: material - the Material item in the hand of the player
    • BREW

      public static final BanAction BREW
      When an item is brewed into a brewer Special data: none
    • CLICK

      public static final BanAction CLICK
      When the player use left click (either on block or on air) with the item Special data: material - the Material item if a block is clicked
    • CONSUME

      public static final BanAction CONSUME
      When the player consume an item (food) Special data: none
    • CRAFT

      public static final BanAction CRAFT
      When the player try to craft an item (crafting result) Special data: none
    • DELETE

      public static final BanAction DELETE
      When the player open or close an inventory, it will delete the banned items Special data: none
    • DISPENSE

      public static final BanAction DISPENSE
      When the item is dispensed from a block Special data: none
    • DROP

      public static final BanAction DROP
      When the player try to drop an item Special data: none
    • DROPS

      public static final BanAction DROPS
      This will disable a block break drops if any drops contains the banned item Special data: material - the Material of the item in player hand
    • ENCHANT

      public static final BanAction ENCHANT
      When a player enchants the item Special data: set of EnchantmentWrapper - the EnchantmentWrapper applied to the item
    • ENTITYDROP

      public static final BanAction ENTITYDROP
      When an entity dies and drop the item Special data: entity - the EntityType of the entity
    • ENTITYINTERACT

      public static final BanAction ENTITYINTERACT
      When a player right click on an entity Special data: entity - the EntityType of the right clicked entity
    • FILL

      public static final BanAction FILL
      When a player try to fill an item (like a bucket) Special data: material - the Material collected
    • GLIDE

      public static final BanAction GLIDE
      When a player try to use (activate) an elytra Special data: none
    • HANGINGPLACE

      public static final BanAction HANGINGPLACE
      When a player try to place a hanging item (itemframe, painting...) Special data: entity - the EntityType created by this hanging place
    • HOLD

      public static final BanAction HOLD
      When a player try to hold the item Special data: none
    • INTERACT

      public static final BanAction INTERACT
      When a player use right click on this item Special data: material - the Material in the player hand
    • INVENTORYCLICK

      public static final BanAction INVENTORYCLICK
      When a player try to click the item in its inventory Special data: inventory-from the InventoryType clicked
    • MENDING

      public static final BanAction MENDING
      When a player has an item repaired via the mending enchantment Special data: none
    • PICKUP

      public static final BanAction PICKUP
      When a player try to pickup an item Special data: none
    • PLACE

      public static final BanAction PLACE
      When a player try to place a block Special data: none
    • RENAME

      public static final BanAction RENAME
      When a player try to rename an item, either with a command or with an anvil Special data: none
    • SMELT

      public static final BanAction SMELT
      When an item is smelted into a furnace Special data: none
    • SMITH

      public static final BanAction SMITH
      When the recipe of an item is completed inside a smithing table. Special data: none
    • SWAP

      public static final BanAction SWAP
      When a player try to swap an item in hands. Will check both offhand item and main hand item Special data: none
    • TRANSFER

      public static final BanAction TRANSFER
      When an item is transfered from an inventory to another Special data: - inventory-from - the InventoryType where the item comes from - inventory-to - the InventoryType where the item goes to
    • UNFILL

      public static final BanAction UNFILL
      When a player unfill a bucket Special data: material - the Material fluid type
    • USE

      public static final BanAction USE
      When a player use (right click) the item Special data: material - the Material clicked, if one clicked
    • WEAR

      public static final BanAction WEAR
      When a player try to wear an item Special data: none
  • Method Details

    • values

      public static BanAction[] 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 BanAction 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()
      Returns:
      the name to lower case of this action