Class PistonEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
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.
  • Constructor Details

    • Pre

      public Pre(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction direction, PistonEvent.PistonMoveType moveType)