Package fr.andross.banitem.actions
Enum Class BanAction
- All Implemented Interfaces:
Serializable
,Comparable<BanAction>
,Constable
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 ConstantDescriptionWhen the player try to place the item on an armorstand Special data: noneWhen the player try to take an item from an armorstand Special data: noneWhen the player attack (left click on) an entity with the item Special data: entity - theEntityType
of the attacked entityWhen the player edits or signs a book and quill item Special data: noneWhen the player try to break (left click on) a block Special data: material - theMaterial
item in the hand of the playerWhen an item is brewed into a brewer Special data: noneWhen the player use left click (either on block or on air) with the item Special data: material - theMaterial
item if a block is clickedWhen the player consume an item (food) Special data: noneWhen the player try to craft an item (crafting result) Special data: noneWhen the player open or close an inventory, it will delete the banned items Special data: noneWhen the item is dispensed from a block Special data: noneWhen the player try to drop an item Special data: noneThis will disable a block break drops if any drops contains the banned item Special data: material - theMaterial
of the item in player handWhen a player enchants the item Special data: set of EnchantmentWrapper - theEnchantmentWrapper
applied to the itemWhen an entity dies and drop the item Special data: entity - theEntityType
of the entityWhen a player right click on an entity Special data: entity - theEntityType
of the right clicked entityWhen a player try to fill an item (like a bucket) Special data: material - theMaterial
collectedWhen a player try to use (activate) an elytra Special data: noneWhen a player try to place a hanging item (itemframe, painting...) Special data: entity - theEntityType
created by this hanging placeWhen a player try to hold the item Special data: noneWhen a player use right click on this item Special data: material - theMaterial
in the player handWhen a player try to click the item in its inventory Special data: inventory-from theInventoryType
clickedWhen a player has an item repaired via the mending enchantment Special data: noneWhen a player try to pickup an item Special data: noneWhen a player try to place a block Special data: noneWhen a player try to rename an item, either with a command or with an anvil Special data: noneWhen an item is smelted into a furnace Special data: noneWhen 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 - theInventoryType
where the item comes from - inventory-to - theInventoryType
where the item goes toWhen a player unfill a bucket Special data: material - theMaterial
fluid typeWhen a player use (right click) the item Special data: material - theMaterial
clicked, if one clickedWhen a player try to wear an item Special data: none -
Method Summary
-
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 - theEntityType
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 - theMaterial
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 - theMaterial
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 -
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 - theMaterial
of the item in player hand -
ENCHANT
When a player enchants the item Special data: set of EnchantmentWrapper - theEnchantmentWrapper
applied to the item -
ENTITYDROP
When an entity dies and drop the item Special data: entity - theEntityType
of the entity -
ENTITYINTERACT
When a player right click on an entity Special data: entity - theEntityType
of the right clicked entity -
FILL
When a player try to fill an item (like a bucket) Special data: material - theMaterial
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 - theEntityType
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 - theMaterial
in the player hand -
INVENTORYCLICK
When a player try to click the item in its inventory Special data: inventory-from theInventoryType
clicked -
MENDING
When a player has an item repaired via the mending enchantment Special data: none -
PICKUP
When a player try to pickup 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 -
TRANSFER
When an item is transfered from an inventory to another Special data: - inventory-from - theInventoryType
where the item comes from - inventory-to - theInventoryType
where the item goes to -
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 - theMaterial
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
- Returns:
- the name to lower case of this action
-