Link to mcblockneighbornotifyevent
Fired when a physics update occurs on a block. This event acts as a way for mods to detect physics updates, in the same way a BUD switch does. This event is only called on the server.
The event is cancelable.
If the event is canceled, vanilla logic won't be executed
The event does not have a result.
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Link to extending-mcblockevent
Link to 使用方式
Gets if a redstone update was forced during setBlock call
Return Type: boolean
// MCBlockNeighborNotifyEvent.getForceRedstoneUpdate() as boolean myMCBlockNeighborNotifyEvent.getForceRedstoneUpdate();
Gets a list of directions from the base block that updates will occur upon.
Return Type: stdlib.List<Direction>
// MCBlockNeighborNotifyEvent.getNotifiedSides() as stdlib.List<Direction> myMCBlockNeighborNotifyEvent.getNotifiedSides();
描述Gets if a redstone update was forced during setBlock call
描述Gets a list of directions from the base block that updates will occur upon.