Class PistonHeadBlock

All Implemented Interfaces:
ItemConvertible

public class PistonHeadBlock extends FacingBlock
Mappings:
Namespace Name
official cop
intermediary net/minecraft/class_2671
named net/minecraft/block/PistonHeadBlock
  • Field Details

    • TYPE

      public static final EnumProperty<PistonType> TYPE
      Mappings:
      Namespace Name Mixin selector
      official b Lcop;b:Lcpt;
      intermediary field_12224 Lnet/minecraft/class_2671;field_12224:Lnet/minecraft/class_2754;
      named TYPE Lnet/minecraft/block/PistonHeadBlock;TYPE:Lnet/minecraft/state/property/EnumProperty;
    • SHORT

      public static final BooleanProperty SHORT
      Mappings:
      Namespace Name Mixin selector
      official c Lcop;c:Lcpm;
      intermediary field_12227 Lnet/minecraft/class_2671;field_12227:Lnet/minecraft/class_2746;
      named SHORT Lnet/minecraft/block/PistonHeadBlock;SHORT:Lnet/minecraft/state/property/BooleanProperty;
    • field_31377

      public static final float field_31377
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lcop;d:F
      intermediary field_31377 Lnet/minecraft/class_2671;field_31377:F
      named field_31377 Lnet/minecraft/block/PistonHeadBlock;field_31377:F
    • EAST_HEAD_SHAPE

      protected static final VoxelShape EAST_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official e Lcop;e:Ldqh;
      intermediary field_12222 Lnet/minecraft/class_2671;field_12222:Lnet/minecraft/class_265;
      named EAST_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;EAST_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • WEST_HEAD_SHAPE

      protected static final VoxelShape WEST_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official f Lcop;f:Ldqh;
      intermediary field_12214 Lnet/minecraft/class_2671;field_12214:Lnet/minecraft/class_265;
      named WEST_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;WEST_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SOUTH_HEAD_SHAPE

      protected static final VoxelShape SOUTH_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official g Lcop;g:Ldqh;
      intermediary field_12228 Lnet/minecraft/class_2671;field_12228:Lnet/minecraft/class_265;
      named SOUTH_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;SOUTH_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NORTH_HEAD_SHAPE

      protected static final VoxelShape NORTH_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official h Lcop;h:Ldqh;
      intermediary field_12213 Lnet/minecraft/class_2671;field_12213:Lnet/minecraft/class_265;
      named NORTH_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;NORTH_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • UP_HEAD_SHAPE

      protected static final VoxelShape UP_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official i Lcop;i:Ldqh;
      intermediary field_12230 Lnet/minecraft/class_2671;field_12230:Lnet/minecraft/class_265;
      named UP_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;UP_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • DOWN_HEAD_SHAPE

      protected static final VoxelShape DOWN_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official j Lcop;j:Ldqh;
      intermediary field_12220 Lnet/minecraft/class_2671;field_12220:Lnet/minecraft/class_265;
      named DOWN_HEAD_SHAPE Lnet/minecraft/block/PistonHeadBlock;DOWN_HEAD_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • field_31378

      protected static final float field_31378
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcop;k:F
      intermediary field_31378 Lnet/minecraft/class_2671;field_31378:F
      named field_31378 Lnet/minecraft/block/PistonHeadBlock;field_31378:F
    • field_31379

      protected static final float field_31379
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcop;l:F
      intermediary field_31379 Lnet/minecraft/class_2671;field_31379:F
      named field_31379 Lnet/minecraft/block/PistonHeadBlock;field_31379:F
    • field_31380

      protected static final float field_31380
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcop;m:F
      intermediary field_31380 Lnet/minecraft/class_2671;field_31380:F
      named field_31380 Lnet/minecraft/block/PistonHeadBlock;field_31380:F
    • UP_ARM_SHAPE

      protected static final VoxelShape UP_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official n Lcop;n:Ldqh;
      intermediary field_12215 Lnet/minecraft/class_2671;field_12215:Lnet/minecraft/class_265;
      named UP_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;UP_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • DOWN_ARM_SHAPE

      protected static final VoxelShape DOWN_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official E Lcop;E:Ldqh;
      intermediary field_12226 Lnet/minecraft/class_2671;field_12226:Lnet/minecraft/class_265;
      named DOWN_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;DOWN_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SOUTH_ARM_SHAPE

      protected static final VoxelShape SOUTH_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official F Lcop;F:Ldqh;
      intermediary field_12221 Lnet/minecraft/class_2671;field_12221:Lnet/minecraft/class_265;
      named SOUTH_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SOUTH_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NORTH_ARM_SHAPE

      protected static final VoxelShape NORTH_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official G Lcop;G:Ldqh;
      intermediary field_12229 Lnet/minecraft/class_2671;field_12229:Lnet/minecraft/class_265;
      named NORTH_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;NORTH_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • EAST_ARM_SHAPE

      protected static final VoxelShape EAST_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official H Lcop;H:Ldqh;
      intermediary field_12218 Lnet/minecraft/class_2671;field_12218:Lnet/minecraft/class_265;
      named EAST_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;EAST_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • WEST_ARM_SHAPE

      protected static final VoxelShape WEST_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official I Lcop;I:Ldqh;
      intermediary field_12223 Lnet/minecraft/class_2671;field_12223:Lnet/minecraft/class_265;
      named WEST_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;WEST_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_UP_ARM_SHAPE

      protected static final VoxelShape SHORT_UP_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official J Lcop;J:Ldqh;
      intermediary field_12231 Lnet/minecraft/class_2671;field_12231:Lnet/minecraft/class_265;
      named SHORT_UP_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_UP_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_DOWN_ARM_SHAPE

      protected static final VoxelShape SHORT_DOWN_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official K Lcop;K:Ldqh;
      intermediary field_12217 Lnet/minecraft/class_2671;field_12217:Lnet/minecraft/class_265;
      named SHORT_DOWN_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_DOWN_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_SOUTH_ARM_SHAPE

      protected static final VoxelShape SHORT_SOUTH_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official L Lcop;L:Ldqh;
      intermediary field_12216 Lnet/minecraft/class_2671;field_12216:Lnet/minecraft/class_265;
      named SHORT_SOUTH_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_SOUTH_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_NORTH_ARM_SHAPE

      protected static final VoxelShape SHORT_NORTH_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official M Lcop;M:Ldqh;
      intermediary field_12225 Lnet/minecraft/class_2671;field_12225:Lnet/minecraft/class_265;
      named SHORT_NORTH_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_NORTH_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_EAST_ARM_SHAPE

      protected static final VoxelShape SHORT_EAST_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official N Lcop;N:Ldqh;
      intermediary field_12219 Lnet/minecraft/class_2671;field_12219:Lnet/minecraft/class_265;
      named SHORT_EAST_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_EAST_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_WEST_ARM_SHAPE

      protected static final VoxelShape SHORT_WEST_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official O Lcop;O:Ldqh;
      intermediary field_12212 Lnet/minecraft/class_2671;field_12212:Lnet/minecraft/class_265;
      named SHORT_WEST_ARM_SHAPE Lnet/minecraft/block/PistonHeadBlock;SHORT_WEST_ARM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • SHORT_HEAD_SHAPES

      private static final VoxelShape[] SHORT_HEAD_SHAPES
      Mappings:
      Namespace Name Mixin selector
      official P Lcop;P:[Ldqh;
      intermediary field_26660 Lnet/minecraft/class_2671;field_26660:[Lnet/minecraft/class_265;
      named SHORT_HEAD_SHAPES Lnet/minecraft/block/PistonHeadBlock;SHORT_HEAD_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;
    • HEAD_SHAPES

      private static final VoxelShape[] HEAD_SHAPES
      Mappings:
      Namespace Name Mixin selector
      official Q Lcop;Q:[Ldqh;
      intermediary field_26661 Lnet/minecraft/class_2671;field_26661:[Lnet/minecraft/class_265;
      named HEAD_SHAPES Lnet/minecraft/block/PistonHeadBlock;HEAD_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;
  • Constructor Details

    • PistonHeadBlock

      public PistonHeadBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcou;<init>(Lcou$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getHeadShapes

      private static VoxelShape[] getHeadShapes(boolean shortHead)
      Mappings:
      Namespace Name Mixin selector
      official a Lcop;a(Z)[Ldqh;
      intermediary method_31019 Lnet/minecraft/class_2671;method_31019(Z)[Lnet/minecraft/class_265;
      named getHeadShapes Lnet/minecraft/block/PistonHeadBlock;getHeadShapes(Z)[Lnet/minecraft/util/shape/VoxelShape;
    • getHeadShape

      private static VoxelShape getHeadShape(Direction direction, boolean shortHead)
      Mappings:
      Namespace Name Mixin selector
      official a Lcop;a(Lgo;Z)Ldqh;
      intermediary method_11520 Lnet/minecraft/class_2671;method_11520(Lnet/minecraft/class_2350;Z)Lnet/minecraft/class_265;
      named getHeadShape Lnet/minecraft/block/PistonHeadBlock;getHeadShape(Lnet/minecraft/util/math/Direction;Z)Lnet/minecraft/util/shape/VoxelShape;
    • hasSidedTransparency

      public boolean hasSidedTransparency(BlockState state)
      Overrides:
      hasSidedTransparency in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official g_ Lcou;g_(Lcov;)Z
      intermediary method_9526 Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Z
      named hasSidedTransparency Lnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcab;Lgj;Ldpt;)Ldqh;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • isAttached

      private boolean isAttached(BlockState headState, BlockState pistonState)
      Mappings:
      Namespace Name Mixin selector
      official a Lcop;a(Lcov;Lcov;)Z
      intermediary method_26980 Lnet/minecraft/class_2671;method_26980(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z
      named isAttached Lnet/minecraft/block/PistonHeadBlock;isAttached(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
    • onBreak

      public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lcav;Lgj;Lcov;Lboj;)V
      intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • onStateReplaced

      public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
      Called in WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.
      Overrides:
      onStateReplaced in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcav;Lgj;Lcov;Z)V
      intermediary method_9536 Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
      named onStateReplaced Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lgo;Lcov;Lcaw;Lgj;Lgj;)Lcov;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcay;Lgj;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • neighborUpdate

      public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)
      Overrides:
      neighborUpdate in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcav;Lgj;Lcdq;Lgj;Z)V
      intermediary method_9612 Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
      named neighborUpdate Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
    • getPickStack

      public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)
      Overrides:
      getPickStack in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lcab;Lgj;Lcov;)Lbuw;
      intermediary method_9574 Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
      named getPickStack Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • rotate

      public BlockState rotate(BlockState state, BlockRotation rotation)
      Applies a block rotation to a block state.

      By default, this returns the provided block state.

      Overrides:
      rotate in class AbstractBlock
      Returns:
      the rotated block state
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcjm;)Lcov;
      intermediary method_9598 Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;
      named rotate Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • mirror

      public BlockState mirror(BlockState state, BlockMirror mirror)
      Overrides:
      mirror in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lchz;)Lcov;
      intermediary method_9569 Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;
      named mirror Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lcdq;a(Lcow$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lcab;Lgj;Ldjo;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z