public enum BanAction extends Enum<BanAction>
Enum Constant and Description |
---|
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
|
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...)
|
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 |
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.
|
SWAP
When a player try to swap an item in hands.
|
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
When a player unfill a bucket
Special data: material - the
Material 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
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static BanAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BanAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BanAction ARMORSTANDPLACE
public static final BanAction ARMORSTANDTAKE
public static final BanAction ATTACK
EntityType
of the attacked entitypublic static final BanAction BOOKEDIT
public static final BanAction BREAK
Material
item in the hand of the playerpublic static final BanAction BREW
public static final BanAction CLICK
Material
item if a block is clickedpublic static final BanAction CONSUME
public static final BanAction CRAFT
public static final BanAction DELETE
public static final BanAction DISPENSE
public static final BanAction DROP
public static final BanAction DROPS
Material
of the item in player handpublic static final BanAction ENCHANT
EnchantmentWrapper
applied to the itempublic static final BanAction ENTITYDROP
EntityType
of the entitypublic static final BanAction ENTITYINTERACT
EntityType
of the right clicked entitypublic static final BanAction FILL
Material
collectedpublic static final BanAction GLIDE
public static final BanAction HANGINGPLACE
EntityType
created by this hanging placepublic static final BanAction HOLD
public static final BanAction INTERACT
Material
in the player handpublic static final BanAction INVENTORYCLICK
InventoryType
clickedpublic static final BanAction PICKUP
public static final BanAction PLACE
public static final BanAction RENAME
public static final BanAction SMELT
public static final BanAction SMITH
public static final BanAction SWAP
public static final BanAction TRANSFER
InventoryType
where the item comes from
- inventory-to - the InventoryType
where the item goes topublic static final BanAction UNFILL
Material
fluid typepublic static final BanAction USE
Material
clicked, if one clickedpublic static final BanAction WEAR
public static BanAction[] values()
for (BanAction c : BanAction.values()) System.out.println(c);
public static BanAction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@NotNull public String getName()
Copyright © 2021. All rights reserved.