public static class BlockEvent.NeighborNotifyEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private boolean |
forceRedstoneUpdate |
private java.util.EnumSet<EnumFacing> |
notifiedSides |
Constructor and Description |
---|
NeighborNotifyEvent(World world,
BlockPos pos,
IBlockState state,
java.util.EnumSet<EnumFacing> notifiedSides,
boolean forceRedstoneUpdate) |
Modifier and Type | Method and Description |
---|---|
boolean |
getForceRedstoneUpdate()
Get if redstone update was forced during setBlock call (0x16 to flags)
|
java.util.EnumSet<EnumFacing> |
getNotifiedSides()
Gets a list of directions from the base block that updates will occur upon.
|
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final java.util.EnumSet<EnumFacing> notifiedSides
private final boolean forceRedstoneUpdate
public NeighborNotifyEvent(World world, BlockPos pos, IBlockState state, java.util.EnumSet<EnumFacing> notifiedSides, boolean forceRedstoneUpdate)
public java.util.EnumSet<EnumFacing> getNotifiedSides()
public boolean getForceRedstoneUpdate()