Class PistonTileEntity

    • Field Detail

      • extending

        private boolean extending
      • isSourcePiston

        private boolean isSourcePiston
      • NOCLIP

        private static final java.lang.ThreadLocal<Direction> NOCLIP
      • progress

        private float progress
      • progressO

        private float progressO
      • lastTicked

        private long lastTicked
      • deathTicks

        private int deathTicks
    • Constructor Detail

      • PistonTileEntity

        public PistonTileEntity()
      • PistonTileEntity

        public PistonTileEntity​(BlockState p_i45665_1_,
                                Direction p_i45665_2_,
                                boolean p_i45665_3_,
                                boolean p_i45665_4_)
    • Method Detail

      • isExtending

        public boolean isExtending()
      • getDirection

        public Direction getDirection()
      • isSourcePiston

        public boolean isSourcePiston()
      • getProgress

        public float getProgress​(float p_145860_1_)
      • getXOff

        public float getXOff​(float p_174929_1_)
      • getYOff

        public float getYOff​(float p_174928_1_)
      • getZOff

        public float getZOff​(float p_174926_1_)
      • getExtendedProgress

        private float getExtendedProgress​(float p_184320_1_)
      • getCollisionRelatedBlockState

        private BlockState getCollisionRelatedBlockState()
      • moveCollidedEntities

        private void moveCollidedEntities​(float p_184322_1_)
      • moveEntityByPiston

        private static void moveEntityByPiston​(Direction p_227022_0_,
                                               Entity p_227022_1_,
                                               double p_227022_2_,
                                               Direction p_227022_4_)
      • moveStuckEntities

        private void moveStuckEntities​(float p_227024_1_)
      • matchesStickyCritera

        private static boolean matchesStickyCritera​(AxisAlignedBB p_227021_0_,
                                                    Entity p_227021_1_)
      • isStickyForEntities

        private boolean isStickyForEntities()
      • getMovementDirection

        public Direction getMovementDirection()
      • fixEntityWithinPistonBase

        private void fixEntityWithinPistonBase​(Entity p_190605_1_,
                                               Direction p_190605_2_,
                                               double p_190605_3_)
      • getMovedState

        public BlockState getMovedState()
      • finalTick

        public void finalTick()
      • getLastTicked

        public long getLastTicked()