Package net.minecraft.block
Class PistonHeadBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.PistonHeadBlock
- Mappings:
Namespace Name official arkintermediary net/minecraft/class_228named net/minecraft/block/PistonHeadBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxstatic final BooleanPropertystatic final EnumProperty<PistonHeadBlock.PistonHeadType>Fields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, Entity entity) protected StateManagerReturns a new state manager with a property array.booleancanBePlacedAdjacent(World world, BlockPos pos, Direction direction) Returns whether blocks can be placed adjacent to it.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosgetCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.booleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) booleanmethod_11568(BlockState state) private Boxmethod_11700(BlockState blockState) method_8640(World world, BlockPos blockPos, BlockState blockState) voidmethod_8641(BlockState blockState, World world, BlockPos blockPos, Block block) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) static Directionmethod_9004(int int2) voidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).stateFromData(int data) Returns a blockstate of the current block from it's idwithMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isLeafBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11575, method_11576, method_11577, method_13315, method_414, method_421, method_435, method_8638, method_8651, method_8653, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLark;a:Lasg;intermediary field_9866Lnet/minecraft/class_228;field_9866:Lnet/minecraft/class_2245;named TYPELnet/minecraft/block/PistonHeadBlock;TYPE:Lnet/minecraft/state/property/EnumProperty;
-
SHORT
- Mappings:
Namespace Name Mixin selector official bLark;b:Lase;intermediary field_9864Lnet/minecraft/class_228;field_9864:Lnet/minecraft/class_2243;named SHORTLnet/minecraft/block/PistonHeadBlock;SHORT:Lnet/minecraft/state/property/BooleanProperty;
-
field_12894
- Mappings:
Namespace Name Mixin selector official cLark;c:Lbby;intermediary field_12894Lnet/minecraft/class_228;field_12894:Lnet/minecraft/class_231;named field_12894Lnet/minecraft/block/PistonHeadBlock;field_12894:Lnet/minecraft/util/math/Box;
-
field_12895
- Mappings:
Namespace Name Mixin selector official dLark;d:Lbby;intermediary field_12895Lnet/minecraft/class_228;field_12895:Lnet/minecraft/class_231;named field_12895Lnet/minecraft/block/PistonHeadBlock;field_12895:Lnet/minecraft/util/math/Box;
-
field_12896
- Mappings:
Namespace Name Mixin selector official eLark;e:Lbby;intermediary field_12896Lnet/minecraft/class_228;field_12896:Lnet/minecraft/class_231;named field_12896Lnet/minecraft/block/PistonHeadBlock;field_12896:Lnet/minecraft/util/math/Box;
-
field_12897
- Mappings:
Namespace Name Mixin selector official fLark;f:Lbby;intermediary field_12897Lnet/minecraft/class_228;field_12897:Lnet/minecraft/class_231;named field_12897Lnet/minecraft/block/PistonHeadBlock;field_12897:Lnet/minecraft/util/math/Box;
-
field_12898
- Mappings:
Namespace Name Mixin selector official gLark;g:Lbby;intermediary field_12898Lnet/minecraft/class_228;field_12898:Lnet/minecraft/class_231;named field_12898Lnet/minecraft/block/PistonHeadBlock;field_12898:Lnet/minecraft/util/math/Box;
-
field_12887
- Mappings:
Namespace Name Mixin selector official BLark;B:Lbby;intermediary field_12887Lnet/minecraft/class_228;field_12887:Lnet/minecraft/class_231;named field_12887Lnet/minecraft/block/PistonHeadBlock;field_12887:Lnet/minecraft/util/math/Box;
-
field_12888
- Mappings:
Namespace Name Mixin selector official CLark;C:Lbby;intermediary field_12888Lnet/minecraft/class_228;field_12888:Lnet/minecraft/class_231;named field_12888Lnet/minecraft/block/PistonHeadBlock;field_12888:Lnet/minecraft/util/math/Box;
-
field_12889
- Mappings:
Namespace Name Mixin selector official DLark;D:Lbby;intermediary field_12889Lnet/minecraft/class_228;field_12889:Lnet/minecraft/class_231;named field_12889Lnet/minecraft/block/PistonHeadBlock;field_12889:Lnet/minecraft/util/math/Box;
-
field_12890
- Mappings:
Namespace Name Mixin selector official ELark;E:Lbby;intermediary field_12890Lnet/minecraft/class_228;field_12890:Lnet/minecraft/class_231;named field_12890Lnet/minecraft/block/PistonHeadBlock;field_12890:Lnet/minecraft/util/math/Box;
-
field_12891
- Mappings:
Namespace Name Mixin selector official FLark;F:Lbby;intermediary field_12891Lnet/minecraft/class_228;field_12891:Lnet/minecraft/class_231;named field_12891Lnet/minecraft/block/PistonHeadBlock;field_12891:Lnet/minecraft/util/math/Box;
-
field_12892
- Mappings:
Namespace Name Mixin selector official GLark;G:Lbby;intermediary field_12892Lnet/minecraft/class_228;field_12892:Lnet/minecraft/class_231;named field_12892Lnet/minecraft/block/PistonHeadBlock;field_12892:Lnet/minecraft/util/math/Box;
-
field_12893
- Mappings:
Namespace Name Mixin selector official ILark;I:Lbby;intermediary field_12893Lnet/minecraft/class_228;field_12893:Lnet/minecraft/class_231;named field_12893Lnet/minecraft/block/PistonHeadBlock;field_12893:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
PistonHeadBlock
public PistonHeadBlock()
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Lars;Laih;Lcm;)Lbby;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
appendCollisionBoxes
public void appendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, @Nullable Entity entity) - Overrides:
appendCollisionBoxesin classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Lars;Laid;Lcm;Lbby;Ljava/util/List;Lrw;)Vintermediary method_11553Lnet/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;)Vnamed appendCollisionBoxesLnet/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
-
method_11700
- Mappings:
Namespace Name Mixin selector official iLark;i(Lars;)Lbby;intermediary method_11700Lnet/minecraft/class_228;method_11700(Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;named method_11700Lnet/minecraft/block/PistonHeadBlock;method_11700(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
method_11568
- Overrides:
method_11568in classBlock- Mappings:
Namespace Name Mixin selector official kLakf;k(Lars;)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
-
onBreakByPlayer
Runs when the block is broken by a player.- Overrides:
onBreakByPlayerin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who broke the block- Mappings:
Namespace Name Mixin selector official aLakf;a(Laid;Lcm;Lars;Lzs;)Vintermediary method_8644Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLakf;b(Laid;Lcm;Lars;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLakf;b(Lars;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLakf;c(Lars;)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
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLakf;a(Laid;Lcm;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
canBePlacedAdjacent
Returns whether blocks can be placed adjacent to it.- Overrides:
canBePlacedAdjacentin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondirection- The block's direction- Returns:
- Whether blocks can be placed adjacent to it
- Mappings:
Namespace Name Mixin selector official bLakf;b(Laid;Lcm;Lct;)Zintermediary method_8662Lnet/minecraft/class_197;method_8662(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed canBePlacedAdjacentLnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLakf;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
method_8641
- Overrides:
method_8641in classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Lars;Laid;Lcm;Lakf;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)Vnamed method_8641Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
method_8654
@Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) - Overrides:
method_8654in classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Lars;Laih;Lcm;Lct;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8654Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_9004
- Mappings:
Namespace Name Mixin selector official eLark;e(I)Lct;intermediary method_9004Lnet/minecraft/class_228;method_9004(I)Lnet/minecraft/class_1354;named method_9004Lnet/minecraft/block/PistonHeadBlock;method_9004(I)Lnet/minecraft/util/math/Direction;
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Laid;Lcm;Lars;)Ladz;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLakf;a(I)Lars;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLakf;e(Lars;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLakf;a(Lars;Laos;)Lars;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 aLakf;a(Lars;Lanf;)Lars;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
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLakf;b()Lart;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-