Class PistonBlock


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

    • EXTENDED

      public static final BooleanProperty EXTENDED
      Mappings:
      Namespace Name Mixin selector
      official a Laqu;a:Laro;
      intermediary field_9862 Lnet/minecraft/class_227;field_9862:Lnet/minecraft/class_2243;
      named EXTENDED Lnet/minecraft/block/PistonBlock;EXTENDED:Lnet/minecraft/state/property/BooleanProperty;
    • field_12881

      protected static final Box field_12881
      Mappings:
      Namespace Name Mixin selector
      official b Laqu;b:Lbbf;
      intermediary field_12881 Lnet/minecraft/class_227;field_12881:Lnet/minecraft/class_231;
      named field_12881 Lnet/minecraft/block/PistonBlock;field_12881:Lnet/minecraft/util/math/Box;
    • field_12882

      protected static final Box field_12882
      Mappings:
      Namespace Name Mixin selector
      official c Laqu;c:Lbbf;
      intermediary field_12882 Lnet/minecraft/class_227;field_12882:Lnet/minecraft/class_231;
      named field_12882 Lnet/minecraft/block/PistonBlock;field_12882:Lnet/minecraft/util/math/Box;
    • field_12883

      protected static final Box field_12883
      Mappings:
      Namespace Name Mixin selector
      official d Laqu;d:Lbbf;
      intermediary field_12883 Lnet/minecraft/class_227;field_12883:Lnet/minecraft/class_231;
      named field_12883 Lnet/minecraft/block/PistonBlock;field_12883:Lnet/minecraft/util/math/Box;
    • field_12884

      protected static final Box field_12884
      Mappings:
      Namespace Name Mixin selector
      official e Laqu;e:Lbbf;
      intermediary field_12884 Lnet/minecraft/class_227;field_12884:Lnet/minecraft/class_231;
      named field_12884 Lnet/minecraft/block/PistonBlock;field_12884:Lnet/minecraft/util/math/Box;
    • field_12885

      protected static final Box field_12885
      Mappings:
      Namespace Name Mixin selector
      official f Laqu;f:Lbbf;
      intermediary field_12885 Lnet/minecraft/class_227;field_12885:Lnet/minecraft/class_231;
      named field_12885 Lnet/minecraft/block/PistonBlock;field_12885:Lnet/minecraft/util/math/Box;
    • field_12886

      protected static final Box field_12886
      Mappings:
      Namespace Name Mixin selector
      official g Laqu;g:Lbbf;
      intermediary field_12886 Lnet/minecraft/class_227;field_12886:Lnet/minecraft/class_231;
      named field_12886 Lnet/minecraft/block/PistonBlock;field_12886:Lnet/minecraft/util/math/Box;
    • isSticky

      private final boolean isSticky
      Mappings:
      Namespace Name Mixin selector
      official B Laqu;B: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)
  • Method Details

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lahx;Lcl;)Lbbf;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • method_11568

      public boolean method_11568(BlockState state)
      Overrides:
      method_11568 in class Block
      Mappings:
      Namespace Name Mixin selector
      official k Lajt;k(Lard;)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
    • appendCollisionBoxes

      public void appendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, @Nullable Entity entity)
      Overrides:
      appendCollisionBoxes in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Lbbf;Ljava/util/List;Lrr;)V
      intermediary method_11553 Lnet/minecraft/class_197;method_11553(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_864;)V
      named appendCollisionBoxes Lnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)V
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(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 Lajt;a(Laht;Lcl;Lard;Lsa;Ladq;)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
    • method_8641

      public void method_8641(BlockState blockState, World world, BlockPos blockPos, Block block)
      Overrides:
      method_8641 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Lajt;)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;)V
      named method_8641 Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
    • onCreation

      public void onCreation(World world, BlockPos pos, BlockState state)
      Runs when the block is placed (by a player or enderman).
      Overrides:
      onCreation in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Laht;Lcl;Lard;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onCreation Lnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • getStateFromData

      public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)
      Returns a BlockState from an id
      Overrides:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;
      intermediary method_8645 Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;
      named getStateFromData Lnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
    • method_9003

      private void method_9003(World world, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official e Laqu;e(Laht;Lcl;Lard;)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 Laqu;a(Laht;Lcl;Lcs;)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 Lajt;a(Lard;Laht;Lcl;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 c Lajt;c(Lard;)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_9002

      @Nullable public static Direction method_9002(int int2)
      Mappings:
      Namespace Name Mixin selector
      official e Laqu;e(I)Lcs;
      intermediary method_9002 Lnet/minecraft/class_227;method_9002(I)Lnet/minecraft/class_1354;
      named method_9002 Lnet/minecraft/block/PistonBlock;method_9002(I)Lnet/minecraft/util/math/Direction;
    • method_9000

      public static Direction method_9000(BlockPos blockPos, LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Laqu;a(Lcl;Lsa;)Lcs;
      intermediary method_9000 Lnet/minecraft/class_227;method_9000(Lnet/minecraft/class_2552;Lnet/minecraft/class_1699;)Lnet/minecraft/class_1354;
      named method_9000 Lnet/minecraft/block/PistonBlock;method_9000(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/util/math/Direction;
    • method_9001

      public static boolean method_9001(BlockState blockState, World world, BlockPos blockPos, Direction direction, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Laqu;a(Lard;Laht;Lcl;Lcs;Z)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;Z)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;Z)Z
    • move

      private boolean move(World world, BlockPos pos, Direction dir, boolean retract)
      Mappings:
      Namespace Name Mixin selector
      official a Laqu;a(Laht;Lcl;Lcs;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
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(I)Lard;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official e Lajt;e(Lard;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • withRotation

      public BlockState withRotation(BlockState state, BlockRotation rotation)
      Overrides:
      withRotation in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laoe;)Lard;
      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 Lajt;a(Lard;Lamr;)Lard;
      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 StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;