public class PlayerGlassBottleFillEvent extends Object implements PlayerEvent, Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected ItemInstance |
item |
protected Block |
target |
| Constructor and Description |
|---|
PlayerGlassBottleFillEvent(Player player,
Block target,
ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
ItemInstance |
getItem() |
Player |
getPlayer()
Get the player in question.
|
Block |
getTarget() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
protected final ItemInstance item
protected final Block target
public PlayerGlassBottleFillEvent(Player player, Block target, ItemInstance item)
public ItemInstance getItem()
public Block getBlock()
public Block getTarget()
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2018 NukkitX. All rights reserved.