Class PistonHeadBlock

All Implemented Interfaces:
ItemConvertible

public class PistonHeadBlock extends FacingBlock
Mappings:
Namespace Name
official ckm
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 Lckm;b:Lclq;
      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 Lckm;c:Lclj;
      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 Lckm;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 Lckm;e:Ldnt;
      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 Lckm;f:Ldnt;
      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 Lckm;g:Ldnt;
      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 Lckm;h:Ldnt;
      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 Lckm;i:Ldnt;
      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 Lckm;j:Ldnt;
      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 Lckm;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 Lckm;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 Lckm;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 Lckm;n:Ldnt;
      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 F Lckm;F:Ldnt;
      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 G Lckm;G:Ldnt;
      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 H Lckm;H:Ldnt;
      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 I Lckm;I:Ldnt;
      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 J Lckm;J:Ldnt;
      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 K Lckm;K:Ldnt;
      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 L Lckm;L:Ldnt;
      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 M Lckm;M:Ldnt;
      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 N Lckm;N:Ldnt;
      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 O Lckm;O:Ldnt;
      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 P Lckm;P:Ldnt;
      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 Q Lckm;Q:[Ldnt;
      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 R Lckm;R:[Ldnt;
      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> Lckr;<init>(Lckr$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 Lckm;a(Z)[Ldnt;
      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 Lckm;a(Lgl;Z)Ldnt;
      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_ Lckr;g_(Lcks;)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 Lckr;a(Lcks;Lbvt;Lgg;Ldnf;)Ldnt;
      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 Lckm;a(Lcks;Lcks;)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 Lbzo;a(Lbwp;Lgg;Lcks;Lbkd;)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 Lckr;a(Lcks;Lbwp;Lgg;Lcks;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 Lckr;a(Lcks;Lgl;Lcks;Lbwq;Lgg;Lgg;)Lcks;
      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 Lckr;a(Lcks;Lbws;Lgg;)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 Lckr;a(Lcks;Lbwp;Lgg;Lbzo;Lgg;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 Lbzo;a(Lbvt;Lgg;Lcks;)Lbqp;
      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 Lckr;a(Lcks;Lcfk;)Lcks;
      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 Lckr;a(Lcks;Lcdx;)Lcks;
      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 Lbzo;a(Lckt$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 Lckr;a(Lcks;Lbvt;Lgg;Ldhb;)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