Enum Class BanAction
- All Implemented Interfaces:
Serializable
,Comparable<BanAction>
,Constable
- 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 ConstantsEnum ConstantDescriptionWhen the player try to place the item on an armorstand.When the player try to take an item from an armorstand.When the player attack (left click on) an entity with the item.When the player edits or signs a book and quill item.When the player try to break (left click on) a block.When an item is brewed into a brewer.When the player use left click (either on block or on air) with the item.When the player consume an item (food).When the player try to craft an item (crafting result).When the crafter item try to craft an item.When the player open or close an inventory, it will delete the banned items.When the item is dispensed from a block.When the player try to drop an item.This will disable a block break drops if any drops contains the banned item.When a player enchants the item.When an entity dies and drop the item.When a player right-click on an entity.When a player try to fill an item (like a bucket).When a player try to use (activate) an elytra.When a player try to place a hanging item (itemframe, painting...).When a player try to hold the item.When a player use right-click on this item.When a player try to click the item in its inventory.When a player has an item repaired via the mending enchantment.When a player try to pick up an item.When a player try to place a block.When a player try to rename an item, either with a command or with an anvil.When an item is smelted into a furnace.When the recipe of an item is completed inside a smithing table.When a player try to swap an item in hands.When a player attacks with an item which has sweeping edge enchantment.When an item is transfered from an inventory to another.When a player unfill a bucket.When a player use (right click) the item.When a player try to wear an item. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getName()
Name, to lower case, of this action.static BanAction
Returns the enum constant of this class with the specified name.static BanAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARMORSTANDPLACE
When the player try to place the item on an armorstand.Special data: none
-
ARMORSTANDTAKE
When the player try to take an item from an armorstand.Special data: none
-
ATTACK
When the player attack (left click on) an entity with the item.Special data: entity - the
EntityType
of the attacked entity -
BOOKEDIT
When the player edits or signs a book and quill item.Special data: none
-
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
When an item is brewed into a brewer.Special data: none
-
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
When the player consume an item (food).Special data: none
-
CRAFT
When the player try to craft an item (crafting result).Special data: none
-
CRAFTER
When the crafter item try to craft an item.Special data: none
-
DELETE
When the player open or close an inventory, it will delete the banned items.Special data: none
-
DISPENSE
When the item is dispensed from a block.Special data: none
-
DROP
When the player try to drop an item.Special data: none
-
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
When a player enchants the item.Special data: set of EnchantmentWrapper - the
EnchantmentWrapper
applied to the item -
ENTITYDROP
When an entity dies and drop the item.Special data: entity - the
EntityType
of the entity -
ENTITYINTERACT
When a player right-click on an entity.Special data: entity - the
EntityType
of the right clicked entity -
FILL
When a player try to fill an item (like a bucket).Special data: material - the
Material
collected -
GLIDE
When a player try to use (activate) an elytra.Special data: none
-
HANGINGPLACE
When a player try to place a hanging item (itemframe, painting...).Special data: entity - the
EntityType
created by this hanging place -
HOLD
When a player try to hold the item.Special data: none
-
INTERACT
When a player use right-click on this item.Special data: material - the
Material
in the player hand -
INVENTORYCLICK
When a player try to click the item in its inventory.Special data: inventory-from the
InventoryType
clicked -
MENDING
When a player has an item repaired via the mending enchantment.Special data: none
-
PICKUP
When a player try to pick up an item.Special data: none
-
PLACE
When a player try to place a block.Special data: none
-
RENAME
When a player try to rename an item, either with a command or with an anvil.Special data: none
-
SMELT
When an item is smelted into a furnace.Special data: none
-
SMITH
When the recipe of an item is completed inside a smithing table.Special data: none
-
SWAP
When a player try to swap an item in hands. Will check both offhand item and main hand item.Special data: none
-
SWEEPINGEDGE
When a player attacks with an item which has sweeping edge enchantment.Special data: entity - the
EntityType
of the attacked entity -
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
- inventory-from - the
-
UNFILL
When a player unfill a bucket. Special data: material - theMaterial
fluid type -
USE
When a player use (right click) the item.Special data: material - the
Material
clicked, if one clicked -
WEAR
When a player try to wear an item.Special data: none
-
-
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
Name, to lower case, of this action.- Returns:
- the name to lower case of this action
-