Package net.minecraft.block
Class PistonBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.PistonBlock
- All Implemented Interfaces:
Itemable
- Mappings:
Namespace Name official bkvintermediary net/minecraft/class_227named net/minecraft/block/PistonBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.Builder, Block.NeighborGroup, Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertyprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprivate final booleanFields inherited from class net.minecraft.block.HorizontalFacingBlock
field_18290Fields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockSoundGroup, collidable, hardness, lightLevel, LOGGER, material, materialColor, randomTicks, stateManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) booleancanPlaceAtSide(BlockState state, BlockView world, BlockPos pos, BlockPlacementEnvironment blockPlacementEnvironment) intgetLightSubtracted(BlockState state, BlockView world, BlockPos pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos) booleanmethod_11562(BlockState state) booleanmethod_11568(BlockState state) booleanmethod_13703(BlockState state) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_16563(ItemPlacementContext itemPlacementContext) booleanmethod_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) voidmethod_8668(BlockState blockState, World world, BlockPos blockPos, BlockState blockState2) static booleanmethod_9001(BlockState blockState, World world, BlockPos blockPos, Direction direction, boolean bool, Direction direction2) private voidmethod_9003(World world, BlockPos blockPos, BlockState blockState) private booleanvoidvoidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entityprivate booleanshouldExtend(World world, BlockPos pos, Direction pistonFace) withMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, canMobSpawnInside, canReplace, createCuboidShape, createStackFromBlock, dropExperience, getBlastResistance, getBlockFromItem, getBlockRenderType, getCollisionShape, getComparatorOutput, getDefaultState, getFluidState, getHardness, getItem, getLuminance, getMaterial, getMaterialColor, getOffsetPos, getOffsetType, getPistonBehavior, getRawIdFromState, getRayTraceShape, getRenderingSeed, getRenderLayerType, getSlipperiness, getSoundGroup, getStateByRawId, getStateManager, getTranslationKey, hasBlockEntity, hasCollision, hasRandomTicks, hasStats, isAir, isFaceFullSquare, isFullBoundsCubeForCulling, isShapeFullCube, isTranslucent, method_11564, method_11565, method_11566, method_11575, method_11576, method_11577, method_13315, method_13704, method_14308, method_14309, method_16564, method_16565, method_16566, method_16568, method_16569, method_16570, method_16572, method_16573, method_16575, method_16580, method_16582, method_16583, method_16584, method_16585, method_16586, method_16588, method_16592, method_16593, method_16596, method_16599, method_16600, method_397, method_400, method_403, method_410, method_414, method_416, method_420, method_421, method_8640, method_8650, method_8651, method_8653, method_8659, method_8661, method_8664, method_8669, method_8674, onBlockBreak, onBreakByPlayer, onDestroyedByExplosion, onLandedUpon, onSteppedOn, pushEntitiesUpBeforeBlockChange, rainTick, requiresSilkTouch, setDefaultState, setup, shouldDropItemsOnExplosion, toString
-
Field Details
-
field_18654
- Mappings:
Namespace Name Mixin selector official bLbkv;b:Lbmb;intermediary field_18654Lnet/minecraft/class_227;field_18654:Lnet/minecraft/class_2243;named field_18654Lnet/minecraft/block/PistonBlock;field_18654:Lnet/minecraft/state/property/BooleanProperty;
-
field_18655
- Mappings:
Namespace Name Mixin selector official cLbkv;c:Lcew;intermediary field_18655Lnet/minecraft/class_227;field_18655:Lnet/minecraft/class_4100;named field_18655Lnet/minecraft/block/PistonBlock;field_18655:Lnet/minecraft/util/shapes/VoxelShape;
-
field_18656
- Mappings:
Namespace Name Mixin selector official oLbkv;o:Lcew;intermediary field_18656Lnet/minecraft/class_227;field_18656:Lnet/minecraft/class_4100;named field_18656Lnet/minecraft/block/PistonBlock;field_18656:Lnet/minecraft/util/shapes/VoxelShape;
-
field_18657
- Mappings:
Namespace Name Mixin selector official pLbkv;p:Lcew;intermediary field_18657Lnet/minecraft/class_227;field_18657:Lnet/minecraft/class_4100;named field_18657Lnet/minecraft/block/PistonBlock;field_18657:Lnet/minecraft/util/shapes/VoxelShape;
-
field_18658
- Mappings:
Namespace Name Mixin selector official qLbkv;q:Lcew;intermediary field_18658Lnet/minecraft/class_227;field_18658:Lnet/minecraft/class_4100;named field_18658Lnet/minecraft/block/PistonBlock;field_18658:Lnet/minecraft/util/shapes/VoxelShape;
-
field_18659
- Mappings:
Namespace Name Mixin selector official rLbkv;r:Lcew;intermediary field_18659Lnet/minecraft/class_227;field_18659:Lnet/minecraft/class_4100;named field_18659Lnet/minecraft/block/PistonBlock;field_18659:Lnet/minecraft/util/shapes/VoxelShape;
-
field_18660
- Mappings:
Namespace Name Mixin selector official sLbkv;s:Lcew;intermediary field_18660Lnet/minecraft/class_227;field_18660:Lnet/minecraft/class_4100;named field_18660Lnet/minecraft/block/PistonBlock;field_18660:Lnet/minecraft/util/shapes/VoxelShape;
-
isSticky
private final boolean isSticky- Mappings:
Namespace Name Mixin selector official tLbkv;t:Zintermediary field_572Lnet/minecraft/class_227;field_572:Znamed isStickyLnet/minecraft/block/PistonBlock;isSticky:Z
-
-
Constructor Details
-
PistonBlock
-
-
Method Details
-
method_13703
- Overrides:
method_13703in classBlock- Mappings:
Namespace Name Mixin selector official qLbcs;q(Lblc;)Zintermediary method_13703Lnet/minecraft/class_197;method_13703(Lnet/minecraft/class_2232;)Znamed method_13703Lnet/minecraft/block/Block;method_13703(Lnet/minecraft/block/BlockState;)Z
-
getOutlineShape
- Overrides:
getOutlineShapein classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxk;Lel;)Lcew;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_4100;named getOutlineShapeLnet/minecraft/block/Block;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shapes/VoxelShape;
-
method_11568
- Overrides:
method_11568in classBlock- Mappings:
Namespace Name Mixin selector official rLbcs;r(Lblc;)Zintermediary method_11568Lnet/minecraft/class_197;method_11568(Lnet/minecraft/class_2232;)Znamed method_11568Lnet/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:
onPlacedin classBlock- Parameters:
world- The world that the block is inpos- The block's positionstate- The block's BlockStateplacer- The entity who placed the blockitemStack- ItemStack instance- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxy;Lel;Lblc;Lafa;Late;)Vintermediary method_419Lnet/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;)Vnamed onPlacedLnet/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
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;Lbcs;Lel;)Vintermediary method_8641Lnet/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;)Vnamed onBreakLnet/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_8668in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;Lblc;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed method_8668Lnet/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
- Overrides:
method_16563in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lark;)Lblc;intermediary method_16563Lnet/minecraft/class_197;method_16563(Lnet/minecraft/class_3544;)Lnet/minecraft/class_2232;named method_16563Lnet/minecraft/block/Block;method_16563(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
method_9003
- Mappings:
Namespace Name Mixin selector official aLbkv;a(Laxy;Lel;Lblc;)Vintermediary method_9003Lnet/minecraft/class_227;method_9003(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed method_9003Lnet/minecraft/block/PistonBlock;method_9003(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
shouldExtend
- Mappings:
Namespace Name Mixin selector official aLbkv;a(Laxy;Lel;Leq;)Zintermediary method_8998Lnet/minecraft/class_227;method_8998(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed shouldExtendLnet/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_435in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxy;Lel;II)Zintermediary method_435Lnet/minecraft/class_197;method_435(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;II)Znamed method_435Lnet/minecraft/block/Block;method_435(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;II)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/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 aLbkv;a(Lblc;Laxy;Lel;Leq;ZLeq;)Zintermediary method_9001Lnet/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;)Znamed method_9001Lnet/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
- Mappings:
Namespace Name Mixin selector official aLbkv;a(Laxy;Lel;Leq;Z)Zintermediary method_8999Lnet/minecraft/class_227;method_8999(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Z)Znamed moveLnet/minecraft/block/PistonBlock;move(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)Z
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Lbhb;)Lblc;intermediary method_11556Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;named withRotationLnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
withMirror
- Overrides:
withMirrorin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Lbfz;)Lblc;intermediary method_11555Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;named withMirrorLnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lble$a;)Vintermediary method_16576Lnet/minecraft/class_197;method_16576(Lnet/minecraft/class_2233$class_3757;)Vnamed appendPropertiesLnet/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_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Laxk;Lblc;Lel;Leq;)Lblb;intermediary method_14307Lnet/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_14307Lnet/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
- Overrides:
getLightSubtractedin classBlock- Mappings:
Namespace Name Mixin selector official jLbcs;j(Lblc;Laxk;Lel;)Iintermediary method_16597Lnet/minecraft/class_197;method_16597(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed getLightSubtractedLnet/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:
canPlaceAtSidein classBlock- Mappings:
Namespace Name Mixin selector official aLbcs;a(Lblc;Laxk;Lel;Lcbf;)Zintermediary method_8663Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_4064;)Znamed canPlaceAtSideLnet/minecraft/block/Block;canPlaceAtSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockPlacementEnvironment;)Z
-