类 BlockEvent.NeighborNotifyEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.BlockEvent.NeighborNotifyEvent
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
BlockEvent
public static class BlockEvent.NeighborNotifyEvent
extends BlockEvent
implements net.neoforged.bus.api.ICancellableEvent
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
字段概要
字段修饰符和类型字段说明private final boolean
-
构造器概要
构造器构造器说明NeighborNotifyEvent
(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) -
方法概要
修饰符和类型方法说明boolean
Get if redstone update was forced during setBlock call (0x16 to flags)Gets a list of directions from the base block that updates will occur upon.从类继承的方法 net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
字段详细资料
-
notifiedSides
-
forceRedstoneUpdate
private final boolean forceRedstoneUpdate
-
-
构造器详细资料
-
NeighborNotifyEvent
public NeighborNotifyEvent(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate)
-
-
方法详细资料
-
getNotifiedSides
Gets a list of directions from the base block that updates will occur upon.- 返回:
- list of notified directions
-
getForceRedstoneUpdate
public boolean getForceRedstoneUpdate()Get if redstone update was forced during setBlock call (0x16 to flags)- 返回:
- if the flag was set
-