Class PistonHeadBlock

All Implemented Interfaces:
ItemConvertible

public class PistonHeadBlock extends FacingBlock
Mappings:
Namespace Name
official cnw
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 Lcnw;b:Lcpb;
      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 Lcnw;c:Lcou;
      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 Lcnw;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 Lcnw;e:Ldpf;
      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 Lcnw;f:Ldpf;
      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 Lcnw;g:Ldpf;
      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 Lcnw;h:Ldpf;
      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 Lcnw;i:Ldpf;
      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 Lcnw;j:Ldpf;
      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 Lcnw;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 Lcnw;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 Lcnw;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 Lcnw;n:Ldpf;
      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 Lcnw;F:Ldpf;
      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 Lcnw;G:Ldpf;
      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 Lcnw;H:Ldpf;
      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 Lcnw;I:Ldpf;
      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 Lcnw;J:Ldpf;
      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 Lcnw;K:Ldpf;
      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 Lcnw;L:Ldpf;
      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 Lcnw;M:Ldpf;
      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 Lcnw;N:Ldpf;
      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 Lcnw;O:Ldpf;
      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 Lcnw;P:Ldpf;
      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 Lcnw;Q:[Ldpf;
      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 Lcnw;R:[Ldpf;
      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> Lcob;<init>(Lcob$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 Lcnw;a(Z)[Ldpf;
      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 Lcnw;a(Lgm;Z)Ldpf;
      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_ Lcob;g_(Lcoc;)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 Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      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 Lcnw;a(Lcoc;Lcoc;)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 Lccy;a(Lcad;Lgh;Lcoc;Lbnr;)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 Lcob;a(Lcoc;Lcad;Lgh;Lcoc;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 Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      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 Lcob;a(Lcoc;Lcag;Lgh;)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 Lcob;a(Lcoc;Lcad;Lgh;Lccy;Lgh;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 Lccy;a(Lbzj;Lgh;Lcoc;)Lbue;
      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 Lcob;a(Lcoc;Lciu;)Lcoc;
      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 Lcob;a(Lcoc;Lchh;)Lcoc;
      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 Lccy;a(Lcod$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 Lcob;a(Lcoc;Lbzj;Lgh;Ldim;)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