类 BlockEvent.NeighborNotifyEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.NeighborNotifyEvent
- 封闭类:
BlockEvent
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.minecraftforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段修饰符和类型字段说明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.minecraftforge.event.level.BlockEvent
getLevel, getPos, getState
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
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
-