Class PistonBlock

All Implemented Interfaces:
Itemable

public class PistonBlock extends HorizontalFacingBlock
Mappings:
Namespace Name
official bkv
intermediary net/minecraft/class_227
named net/minecraft/block/PistonBlock
  • Field Details

    • field_18654

      public static final BooleanProperty field_18654
      Mappings:
      Namespace Name Mixin selector
      official b Lbkv;b:Lbmb;
      intermediary field_18654 Lnet/minecraft/class_227;field_18654:Lnet/minecraft/class_2243;
      named field_18654 Lnet/minecraft/block/PistonBlock;field_18654:Lnet/minecraft/state/property/BooleanProperty;
    • field_18655

      protected static final VoxelShape field_18655
      Mappings:
      Namespace Name Mixin selector
      official c Lbkv;c:Lcew;
      intermediary field_18655 Lnet/minecraft/class_227;field_18655:Lnet/minecraft/class_4100;
      named field_18655 Lnet/minecraft/block/PistonBlock;field_18655:Lnet/minecraft/util/shapes/VoxelShape;
    • field_18656

      protected static final VoxelShape field_18656
      Mappings:
      Namespace Name Mixin selector
      official o Lbkv;o:Lcew;
      intermediary field_18656 Lnet/minecraft/class_227;field_18656:Lnet/minecraft/class_4100;
      named field_18656 Lnet/minecraft/block/PistonBlock;field_18656:Lnet/minecraft/util/shapes/VoxelShape;
    • field_18657

      protected static final VoxelShape field_18657
      Mappings:
      Namespace Name Mixin selector
      official p Lbkv;p:Lcew;
      intermediary field_18657 Lnet/minecraft/class_227;field_18657:Lnet/minecraft/class_4100;
      named field_18657 Lnet/minecraft/block/PistonBlock;field_18657:Lnet/minecraft/util/shapes/VoxelShape;
    • field_18658

      protected static final VoxelShape field_18658
      Mappings:
      Namespace Name Mixin selector
      official q Lbkv;q:Lcew;
      intermediary field_18658 Lnet/minecraft/class_227;field_18658:Lnet/minecraft/class_4100;
      named field_18658 Lnet/minecraft/block/PistonBlock;field_18658:Lnet/minecraft/util/shapes/VoxelShape;
    • field_18659

      protected static final VoxelShape field_18659
      Mappings:
      Namespace Name Mixin selector
      official r Lbkv;r:Lcew;
      intermediary field_18659 Lnet/minecraft/class_227;field_18659:Lnet/minecraft/class_4100;
      named field_18659 Lnet/minecraft/block/PistonBlock;field_18659:Lnet/minecraft/util/shapes/VoxelShape;
    • field_18660

      protected static final VoxelShape field_18660
      Mappings:
      Namespace Name Mixin selector
      official s Lbkv;s:Lcew;
      intermediary field_18660 Lnet/minecraft/class_227;field_18660:Lnet/minecraft/class_4100;
      named field_18660 Lnet/minecraft/block/PistonBlock;field_18660:Lnet/minecraft/util/shapes/VoxelShape;
    • isSticky

      private final boolean isSticky
      Mappings:
      Namespace Name Mixin selector
      official t Lbkv;t:Z
      intermediary field_572 Lnet/minecraft/class_227;field_572:Z
      named isSticky Lnet/minecraft/block/PistonBlock;isSticky:Z
  • Constructor Details

    • PistonBlock

      public PistonBlock(boolean bool, Block.Builder builder)
  • Method Details

    • method_13703

      public boolean method_13703(BlockState state)
      Overrides:
      method_13703 in class Block
      Mappings:
      Namespace Name Mixin selector
      official q Lbcs;q(Lblc;)Z
      intermediary method_13703 Lnet/minecraft/class_197;method_13703(Lnet/minecraft/class_2232;)Z
      named method_13703 Lnet/minecraft/block/Block;method_13703(Lnet/minecraft/block/BlockState;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getOutlineShape in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxk;Lel;)Lcew;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_4100;
      named getOutlineShape Lnet/minecraft/block/Block;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shapes/VoxelShape;
    • method_11568

      public boolean method_11568(BlockState state)
      Overrides:
      method_11568 in class Block
      Mappings:
      Namespace Name Mixin selector
      official r Lbcs;r(Lblc;)Z
      intermediary method_11568 Lnet/minecraft/class_197;method_11568(Lnet/minecraft/class_2232;)Z
      named method_11568 Lnet/minecraft/block/Block;method_11568(Lnet/minecraft/block/BlockState;)Z
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Runs when the block is placed by an entity
      Overrides:
      onPlaced in class Block
      Parameters:
      world - The world that the block is in
      pos - The block's position
      state - The block's BlockState
      placer - The entity who placed the block
      itemStack - ItemStack instance
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxy;Lel;Lblc;Lafa;Late;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • onBreak

      public void onBreak(BlockState state, World world, BlockPos arg3, Block block, BlockPos pos)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Lbcs;Lel;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
    • method_8668

      public void method_8668(BlockState blockState, World world, BlockPos blockPos, BlockState blockState2)
      Overrides:
      method_8668 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;Lblc;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_8668 Lnet/minecraft/block/Block;method_8668(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • method_16563

      public BlockState method_16563(ItemPlacementContext itemPlacementContext)
      Overrides:
      method_16563 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lark;)Lblc;
      intermediary method_16563 Lnet/minecraft/class_197;method_16563(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;
      named method_16563 Lnet/minecraft/block/Block;method_16563(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • method_9003

      private void method_9003(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkv;a(Laxy;Lel;Lblc;)V
      intermediary method_9003 Lnet/minecraft/class_227;method_9003(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_9003 Lnet/minecraft/block/PistonBlock;method_9003(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • shouldExtend

      private boolean shouldExtend(World world, BlockPos pos, Direction pistonFace)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkv;a(Laxy;Lel;Leq;)Z
      intermediary method_8998 Lnet/minecraft/class_227;method_8998(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named shouldExtend Lnet/minecraft/block/PistonBlock;shouldExtend(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_435

      public boolean method_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3)
      Overrides:
      method_435 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxy;Lel;II)Z
      intermediary method_435 Lnet/minecraft/class_197;method_435(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;II)Z
      named method_435 Lnet/minecraft/block/Block;method_435(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;II)Z
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
    • method_9001

      public static boolean method_9001(BlockState blockState, World world, BlockPos blockPos, Direction direction, boolean bool, Direction direction2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkv;a(Lblc;Laxy;Lel;Leq;ZLeq;)Z
      intermediary method_9001 Lnet/minecraft/class_227;method_9001(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;ZLnet/minecraft/class_1354;)Z
      named method_9001 Lnet/minecraft/block/PistonBlock;method_9001(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;ZLnet/minecraft/util/math/Direction;)Z
    • move

      private boolean move(World world, BlockPos pos, Direction dir, boolean retract)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkv;a(Laxy;Lel;Leq;Z)Z
      intermediary method_8999 Lnet/minecraft/class_227;method_8999(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Z)Z
      named move Lnet/minecraft/block/PistonBlock;move(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)Z
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Lbhb;)Lblc;
      intermediary method_11556 Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;
      named withRotation Lnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
    • withMirror

      public BlockState withMirror(BlockState state, BlockMirror mirror)
      Overrides:
      withMirror in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Lbfz;)Lblc;
      intermediary method_11555 Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;
      named withMirror Lnet/minecraft/block/Block;withMirror(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 Lbcs;a(Lble$a;)V
      intermediary method_16576 Lnet/minecraft/class_197;method_16576(Lnet/minecraft/class_2233$class_3757;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • method_14307

      public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction)
      Overrides:
      method_14307 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Laxk;Lblc;Lel;Leq;)Lblb;
      intermediary method_14307 Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;
      named method_14307 Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
    • getLightSubtracted

      public int getLightSubtracted(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      getLightSubtracted in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Lbcs;j(Lblc;Laxk;Lel;)I
      intermediary method_16597 Lnet/minecraft/class_197;method_16597(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)I
      named getLightSubtracted Lnet/minecraft/block/Block;getLightSubtracted(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • canPlaceAtSide

      public boolean canPlaceAtSide(BlockState state, BlockView world, BlockPos pos, BlockPlacementEnvironment blockPlacementEnvironment)
      Overrides:
      canPlaceAtSide in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbcs;a(Lblc;Laxk;Lel;Lcbf;)Z
      intermediary method_8663 Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_4064;)Z
      named canPlaceAtSide Lnet/minecraft/block/Block;canPlaceAtSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockPlacementEnvironment;)Z