Package net.minecraftforge.event.level
Class BlockEvent.NeighborNotifyEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.NeighborNotifyEvent
- Enclosing class:
- 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.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.level.BlockEventBlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEventNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final boolean
- 
Constructor SummaryConstructorsConstructorDescriptionNeighborNotifyEvent(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet 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.Methods inherited from class net.minecraftforge.event.level.BlockEventgetLevel, getPos, getStateMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
notifiedSides
- 
forceRedstoneUpdateprivate final boolean forceRedstoneUpdate
 
- 
- 
Constructor Details- 
NeighborNotifyEventpublic NeighborNotifyEvent(Level level, BlockPos pos, BlockState state, EnumSet<Direction> notifiedSides, boolean forceRedstoneUpdate) 
 
- 
- 
Method Details- 
getNotifiedSidesGets a list of directions from the base block that updates will occur upon.- Returns:
- list of notified directions
 
- 
getForceRedstoneUpdatepublic boolean getForceRedstoneUpdate()Get if redstone update was forced during setBlock call (0x16 to flags)- Returns:
- if the flag was set
 
 
-