Class PistonHeadBlock

All Implemented Interfaces:
ItemConvertible

public class PistonHeadBlock
extends FacingBlock
Mappings:
Namespace Name
official chn
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 Lchn;b:Lcir;
      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 Lchn;c:Lcik;
      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;
    • EAST_HEAD_SHAPE

      protected static final VoxelShape EAST_HEAD_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lchn;d:Ldjn;
      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 e Lchn;e:Ldjn;
      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 f Lchn;f:Ldjn;
      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 g Lchn;g:Ldjn;
      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 h Lchn;h:Ldjn;
      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 i Lchn;i:Ldjn;
      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;
    • UP_ARM_SHAPE

      protected static final VoxelShape UP_ARM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official j Lchn;j:Ldjn;
      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 k Lchn;k:Ldjn;
      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 o Lchn;o:Ldjn;
      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 p Lchn;p:Ldjn;
      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 q Lchn;q:Ldjn;
      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 r Lchn;r:Ldjn;
      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 s Lchn;s:Ldjn;
      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 t Lchn;t:Ldjn;
      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 u Lchn;u:Ldjn;
      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 v Lchn;v:Ldjn;
      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 w Lchn;w:Ldjn;
      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 x Lchn;x:Ldjn;
      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 y Lchn;y:[Ldjn;
      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 z Lchn;z:[Ldjn;
      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> Lchs;<init>(Lchs$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 Lchn;a(Z)[Ldjn;
      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 Lchn;a(Lgc;Z)Ldjn;
      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 e_ Lchs;e_(Lcht;)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 Lchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
      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;
    • method_26980

      private boolean method_26980​(BlockState state, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lchn;a(Lcht;Lcht;)Z
      intermediary method_26980 Lnet/minecraft/class_2671;method_26980(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z
      named method_26980 Lnet/minecraft/block/PistonHeadBlock;method_26980(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 Lbwu;a(Lbtv;Lfx;Lcht;Lbhl;)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 Lchs;a(Lcht;Lbtv;Lfx;Lcht;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 Lchs;a(Lcht;Lgc;Lcht;Lbtw;Lfx;Lfx;)Lcht;
      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 Lchs;a(Lcht;Lbty;Lfx;)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 Lchs;a(Lcht;Lbtv;Lfx;Lbwu;Lfx;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

      @Environment(CLIENT) public ItemStack getPickStack​(BlockView world, BlockPos pos, BlockState state)
      Overrides:
      getPickStack in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbsz;Lfx;Lcht;)Lbnv;
      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 Lchs;a(Lcht;Lccm;)Lcht;
      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 Lchs;a(Lcht;Lcbb;)Lcht;
      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 Lbwu;a(Lchu$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 Lchs;a(Lcht;Lbsz;Lfx;Ldcu;)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