Package net.minecraftforge.event.world
Class PistonEvent.Pre
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.BlockEvent
-
- net.minecraftforge.event.world.PistonEvent
-
- net.minecraftforge.event.world.PistonEvent.Pre
-
- Enclosing class:
- PistonEvent
public static class PistonEvent.Pre extends PistonEvent
Fires before the piston has updated block states. Cancellation prevents movement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.PistonEvent
PistonEvent.PistonMoveType, PistonEvent.Post, PistonEvent.Pre
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.BlockEvent
BlockEvent.BlockToolInteractEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
-
Constructor Summary
Constructors Constructor Description Pre(World world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType)
-
Method Summary
-
Methods inherited from class net.minecraftforge.event.world.PistonEvent
getDirection, getFaceOffsetPos, getPistonMoveType, getStructureHelper
-
Methods inherited from class net.minecraftforge.event.world.BlockEvent
getPos, getState, getWorld
-
-
-
-
Constructor Detail
-
Pre
public Pre(World world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType)
-
-