public class BlockEvent extends Event
Modifier and Type | Class and Description |
---|---|
static class |
BlockEvent.BreakEvent
Event that is fired when an Block is about to be broken by a player
Canceling this event will prevent the Block from being broken.
|
static class |
BlockEvent.HarvestDropsEvent
Fired when a block is about to drop it's harvested items.
|
static class |
BlockEvent.MultiPlaceEvent
Fired when a single block placement action of a player triggers the
creation of multiple blocks(e.g.
|
static class |
BlockEvent.PlaceEvent
Called when a block is placed by a player.
|
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
Block |
block |
int |
blockMetadata |
World |
world |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
BlockEvent(int x,
int y,
int z,
World world,
Block block,
int blockMetadata) |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup