Module net.minestom.server
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:
getBlock
in interfaceBlockEvent
-
getBlockPosition
- Specified by:
getBlockPosition
in interfaceBlockEvent
-
getInstance
Description copied from interface:InstanceEvent
Gets the instance.- Specified by:
getInstance
in interfaceInstanceEvent
- Returns:
- instance
-