The BlockEvent is the base class of BlockBreakEvent and BlockPlaceEvent.
The BlockEvent class is a subtype of the Event class and inherits all its properties and functions.
Here is an overview of the BlockEvent properties:
Property | Type | read / write |
---|---|---|
block | Block | r |
pos | Vec3 | r |
Below you find short descriptions about each of the properties and some examples about how to use them in your spells.
This is the block this event is about.
The block’s position.