public final class BlockPlaceEvent extends BlockEvent implements Cancellable
| Modifier and Type | Field and Description |
|---|---|
protected Block |
blockAgainst |
protected BlockState |
blockPlace |
protected ItemStack |
item |
protected Player |
player |
block| Constructor and Description |
|---|
BlockPlaceEvent(Player player,
BlockState blockPlace,
Block blockReplace,
Block blockAgainst,
ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlockAgainst() |
BlockState |
getBlockPlace() |
ItemStack |
getItem() |
Player |
getPlayer() |
getBlockisCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledprotected final Player player
protected final ItemStack item
protected final BlockState blockPlace
protected final Block blockAgainst
public BlockPlaceEvent(Player player, BlockState blockPlace, Block blockReplace, Block blockAgainst, ItemStack item)
public Player getPlayer()
public ItemStack getItem()
public BlockState getBlockPlace()
public Block getBlockAgainst()
Copyright © 2021. All rights reserved.