public final class PlayerBanItemEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
PlayerBanItemEvent.Type
The ban type
|
Constructor and Description |
---|
PlayerBanItemEvent(org.bukkit.entity.Player player,
PlayerBanItemEvent.Type type,
BannedItem bannedItem,
BanAction action,
BanActionData actionData,
BanData... data) |
Modifier and Type | Method and Description |
---|---|
BanAction |
getaction()
Deprecated.
Error in typo. Use
getAction() instead. |
BanAction |
getAction()
The ban action
|
BanActionData |
getactionData()
Deprecated.
Error in typo. Use
getActionData() instead. |
BanActionData |
getActionData()
The ban action data
|
BannedItem |
getBannedItem()
The banned item
|
BanData[] |
getData()
The data used
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
PlayerBanItemEvent.Type |
getType()
Type of banning
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
public PlayerBanItemEvent(@NotNull org.bukkit.entity.Player player, @NotNull PlayerBanItemEvent.Type type, @NotNull BannedItem bannedItem, @NotNull BanAction action, @NotNull BanActionData actionData, @Nullable BanData... data)
public PlayerBanItemEvent.Type getType()
@NotNull public BannedItem getBannedItem()
@NotNull public BanAction getAction()
@NotNull public BanActionData getActionData()
@Deprecated @NotNull public BanAction getaction()
getAction()
instead.@Deprecated @NotNull public BanActionData getactionData()
getActionData()
instead.@Nullable public BanData[] getData()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface org.bukkit.event.Cancellable
@NotNull public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
@NotNull public static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2021. All rights reserved.