BlockNeighborNotify

Link to blockneighbornotify

The BlockNeighborNotify Event is 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.

You will need to cast the event in the function header as this class:
crafttweaker.event.BlockNeighborNotifyEvent
You can, of course, also import the class before and use that name then.

Event interface extensions

Link to event-interface-extensions

BlockNeighborNotify Events implement the following interfaces and are able to call all of their methods/getters/setters as well:

ZenGetterTypeDescription
ZenGetter
forceRedstoneUpdate
Type
bool
Description
If redstone update was forced during setBlock call (0x16 to flags)
ZenGetter
notifiedSides
Type
IFacing[]
Description
A list of directions from the base block that updates will occur upon.