Package net.minecraft.block.piston
Class PistonHandler
java.lang.Object
net.minecraft.block.piston.PistonHandler
public class PistonHandler extends Object
- Mappings:
Namespace Name official chq
intermediary net/minecraft/class_2674
named net/minecraft/block/piston/PistonHandler
-
Field Summary
Fields Modifier and Type Field Description private List<BlockPos>
brokenBlocks
private Direction
motionDirection
private List<BlockPos>
movedBlocks
private Direction
pistonDirection
private BlockPos
posFrom
private BlockPos
posTo
private boolean
retracted
private World
world
-
Constructor Summary
Constructors Constructor Description PistonHandler(World world, BlockPos pos, Direction dir, boolean retracted)
-
Method Summary
Modifier and Type Method Description boolean
calculatePush()
private boolean
canMoveAdjacentBlock(BlockPos pos)
List<BlockPos>
getBrokenBlocks()
List<BlockPos>
getMovedBlocks()
private static boolean
isAdjacentBlockStuck(BlockState state, BlockState adjacentState)
private static boolean
isBlockSticky(BlockState state)
private void
setMovedBlocks(int from, int to)
private boolean
tryMove(BlockPos pos, Direction dir)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official a
Lchq;a:Lbtv;
intermediary field_12249
Lnet/minecraft/class_2674;field_12249:Lnet/minecraft/class_1937;
named world
Lnet/minecraft/block/piston/PistonHandler;world:Lnet/minecraft/world/World;
-
posFrom
- Mappings:
Namespace Name Mixin selector official b
Lchq;b:Lfx;
intermediary field_12250
Lnet/minecraft/class_2674;field_12250:Lnet/minecraft/class_2338;
named posFrom
Lnet/minecraft/block/piston/PistonHandler;posFrom:Lnet/minecraft/util/math/BlockPos;
-
retracted
private final boolean retracted- Mappings:
Namespace Name Mixin selector official c
Lchq;c:Z
intermediary field_12247
Lnet/minecraft/class_2674;field_12247:Z
named retracted
Lnet/minecraft/block/piston/PistonHandler;retracted:Z
-
posTo
- Mappings:
Namespace Name Mixin selector official d
Lchq;d:Lfx;
intermediary field_12244
Lnet/minecraft/class_2674;field_12244:Lnet/minecraft/class_2338;
named posTo
Lnet/minecraft/block/piston/PistonHandler;posTo:Lnet/minecraft/util/math/BlockPos;
-
motionDirection
- Mappings:
Namespace Name Mixin selector official e
Lchq;e:Lgc;
intermediary field_12243
Lnet/minecraft/class_2674;field_12243:Lnet/minecraft/class_2350;
named motionDirection
Lnet/minecraft/block/piston/PistonHandler;motionDirection:Lnet/minecraft/util/math/Direction;
-
movedBlocks
- Mappings:
Namespace Name Mixin selector official f
Lchq;f:Ljava/util/List;
intermediary field_12245
Lnet/minecraft/class_2674;field_12245:Ljava/util/List;
named movedBlocks
Lnet/minecraft/block/piston/PistonHandler;movedBlocks:Ljava/util/List;
-
brokenBlocks
- Mappings:
Namespace Name Mixin selector official g
Lchq;g:Ljava/util/List;
intermediary field_12246
Lnet/minecraft/class_2674;field_12246:Ljava/util/List;
named brokenBlocks
Lnet/minecraft/block/piston/PistonHandler;brokenBlocks:Ljava/util/List;
-
pistonDirection
- Mappings:
Namespace Name Mixin selector official h
Lchq;h:Lgc;
intermediary field_12248
Lnet/minecraft/class_2674;field_12248:Lnet/minecraft/class_2350;
named pistonDirection
Lnet/minecraft/block/piston/PistonHandler;pistonDirection:Lnet/minecraft/util/math/Direction;
-
-
Constructor Details
-
PistonHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lchq;<init>(Lbtv;Lfx;Lgc;Z)V
intermediary <init>
Lnet/minecraft/class_2674;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Z)V
named <init>
Lnet/minecraft/block/piston/PistonHandler;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)V
-
-
Method Details
-
calculatePush
public boolean calculatePush()- Mappings:
Namespace Name Mixin selector official a
Lchq;a()Z
intermediary method_11537
Lnet/minecraft/class_2674;method_11537()Z
named calculatePush
Lnet/minecraft/block/piston/PistonHandler;calculatePush()Z
-
isBlockSticky
- Mappings:
Namespace Name Mixin selector official a
Lchq;a(Lcht;)Z
intermediary method_23367
Lnet/minecraft/class_2674;method_23367(Lnet/minecraft/class_2680;)Z
named isBlockSticky
Lnet/minecraft/block/piston/PistonHandler;isBlockSticky(Lnet/minecraft/block/BlockState;)Z
-
isAdjacentBlockStuck
- Mappings:
Namespace Name Mixin selector official a
Lchq;a(Lcht;Lcht;)Z
intermediary method_23675
Lnet/minecraft/class_2674;method_23675(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z
named isAdjacentBlockStuck
Lnet/minecraft/block/piston/PistonHandler;isAdjacentBlockStuck(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
-
tryMove
- Mappings:
Namespace Name Mixin selector official a
Lchq;a(Lfx;Lgc;)Z
intermediary method_11540
Lnet/minecraft/class_2674;method_11540(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
named tryMove
Lnet/minecraft/block/piston/PistonHandler;tryMove(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
setMovedBlocks
private void setMovedBlocks(int from, int to)- Mappings:
Namespace Name Mixin selector official a
Lchq;a(II)V
intermediary method_11539
Lnet/minecraft/class_2674;method_11539(II)V
named setMovedBlocks
Lnet/minecraft/block/piston/PistonHandler;setMovedBlocks(II)V
-
canMoveAdjacentBlock
- Mappings:
Namespace Name Mixin selector official a
Lchq;a(Lfx;)Z
intermediary method_11538
Lnet/minecraft/class_2674;method_11538(Lnet/minecraft/class_2338;)Z
named canMoveAdjacentBlock
Lnet/minecraft/block/piston/PistonHandler;canMoveAdjacentBlock(Lnet/minecraft/util/math/BlockPos;)Z
-
getMovedBlocks
- Mappings:
Namespace Name Mixin selector official c
Lchq;c()Ljava/util/List;
intermediary method_11541
Lnet/minecraft/class_2674;method_11541()Ljava/util/List;
named getMovedBlocks
Lnet/minecraft/block/piston/PistonHandler;getMovedBlocks()Ljava/util/List;
-
getBrokenBlocks
- Mappings:
Namespace Name Mixin selector official d
Lchq;d()Ljava/util/List;
intermediary method_11536
Lnet/minecraft/class_2674;method_11536()Ljava/util/List;
named getBrokenBlocks
Lnet/minecraft/block/piston/PistonHandler;getBrokenBlocks()Ljava/util/List;
-