Class PistonEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.PistonEvent
net.neoforged.neoforge.event.level.PistonEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
PistonEvent
public static class PistonEvent.Pre
extends PistonEvent
implements net.neoforged.bus.api.ICancellableEvent
Fires before the piston has updated block states. Cancellation prevents movement.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.PistonEvent
PistonEvent.PistonMoveType, PistonEvent.Post, PistonEvent.Pre
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
Constructor Summary
ConstructorDescriptionPre
(Level world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType) -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.PistonEvent
getDirection, getFaceOffsetPos, getPistonMoveType, getStructureHelper
Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
-