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.

Класс события

Link to класс-события

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.

Наследование от интерфейсов событий

Link to наследование-от-интерфейсов-событий

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

ZenGetterТипОписание
ZenGetter
forceRedstoneUpdate
Тип
bool
Описание
If redstone update was forced during setBlock call (0x16 to flags)
ZenGetter
notifiedSides
Тип
IFacing[]
Описание
A list of directions from the base block that updates will occur upon.