Class InstanceBlockUpdateEvent
java.lang.Object
net.minestom.server.event.instance.InstanceBlockUpdateEvent
- All Implemented Interfaces:
Event, BlockEvent, InstanceEvent
Called when a block in an instance is updated.
This event is triggered when a block's state changes from its instance.
If you wish to listen to all block updates, must be used in conjunction with InstanceSectionInvalidateEvent
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceBlockUpdateEvent(Instance instance, BlockVec blockPosition, Block block) -
Method Summary
-
Constructor Details
-
InstanceBlockUpdateEvent
-
-
Method Details
-
getBlock
- Specified by:
getBlockin interfaceBlockEvent
-
getBlockPosition
- Specified by:
getBlockPositionin interfaceBlockEvent
-
getInstance
Description copied from interface:InstanceEventGets the instance.- Specified by:
getInstancein interfaceInstanceEvent- Returns:
- instance
-