public abstract class PistonEvent extends BlockEvent
PistonEvent.Post and PistonEvent.Pre| 修飾子とタイプ | クラスと説明 | 
|---|---|
| static class  | PistonEvent.PistonMoveType | 
| static class  | PistonEvent.PostFires after the piston has moved and set surrounding states. | 
| static class  | PistonEvent.PreFires before the piston has updated block states. | 
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEventEvent.HasResult, Event.Result| コンストラクタと説明 | 
|---|
| PistonEvent(World world,
           BlockPos pos,
           Direction direction,
           PistonEvent.PistonMoveType moveType) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| Direction | getDirection() | 
| BlockPos | getFaceOffsetPos()Helper method that gets the piston position offset by its facing | 
| PistonEvent.PistonMoveType | getPistonMoveType() | 
| PistonBlockStructureHelper | getStructureHelper() | 
getPos, getState, getWorldgetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PistonEvent(World world, BlockPos pos, Direction direction, PistonEvent.PistonMoveType moveType)
world - pos - - The position of the pistondirection - - The direction of the pistondirection - - The move direction of the pistonpublic Direction getDirection()
public BlockPos getFaceOffsetPos()
public PistonEvent.PistonMoveType getPistonMoveType()
@Nullable public PistonBlockStructureHelper getStructureHelper()
World