public class BlockBreakEvent extends BlockEvent implements Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected Item[] |
blockDrops |
protected int |
blockXP |
protected Direction |
face |
protected boolean |
fastBreak |
protected boolean |
instaBreak |
protected Item |
item |
protected Player |
player |
block| Constructor and Description |
|---|
BlockBreakEvent(Player player,
Block block,
Direction face,
Item item,
Item[] drops,
int dropExp,
boolean instaBreak,
boolean fastBreak) |
BlockBreakEvent(Player player,
Block block,
Item item,
Item[] drops) |
BlockBreakEvent(Player player,
Block block,
Item item,
Item[] drops,
boolean instaBreak) |
BlockBreakEvent(Player player,
Block block,
Item item,
Item[] drops,
boolean instaBreak,
boolean fastBreak) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDropExp() |
Item[] |
getDrops() |
Direction |
getFace() |
static HandlerList |
getHandlers() |
boolean |
getInstaBreak() |
Item |
getItem() |
Player |
getPlayer() |
boolean |
isFastBreak() |
void |
setDropExp(int xp) |
void |
setDrops(Item[] drops) |
void |
setInstaBreak(boolean instaBreak) |
getBlockgetEventName, isCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledprotected final Player player
protected final Item item
protected final Direction face
protected boolean instaBreak
protected Item[] blockDrops
protected int blockXP
protected boolean fastBreak
public BlockBreakEvent(Player player, Block block, Item item, Item[] drops, boolean instaBreak)
public BlockBreakEvent(Player player, Block block, Item item, Item[] drops, boolean instaBreak, boolean fastBreak)
public static HandlerList getHandlers()
public Player getPlayer()
public Direction getFace()
public Item getItem()
public boolean getInstaBreak()
public Item[] getDrops()
public void setDrops(Item[] drops)
public int getDropExp()
public void setDropExp(int xp)
public void setInstaBreak(boolean instaBreak)
public boolean isFastBreak()
Copyright © 2020. All rights reserved.