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 awkintermediary 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 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, boolean isActualState) 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_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_8640(World world, BlockPos blockPos, BlockState blockState) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) static Directionmethod_9004(int int2) voidvoidonBreakByPlayer(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
addStacksForDisplay, appendCollisionBoxes, areBlocksEqual, blocksMovement, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11575, method_11576, method_11577, method_13315, method_13702, method_13703, method_13704, method_14306, method_14308, method_14309, method_414, method_435, method_8638, method_8640, 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, use, useNeighbourLight
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLawk;a:Laxh;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 bLawk;b:Laxf;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 cLawk;c:Lbhb;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 dLawk;d:Lbhb;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 eLawk;e:Lbhb;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 fLawk;f:Lbhb;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 gLawk;g:Lbhb;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 BLawk;B:Lbhb;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 CLawk;C:Lbhb;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 DLawk;D:Lbhb;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 ELawk;E:Lbhb;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 FLawk;F:Lbhb;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 GLawk;G:Lbhb;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 ILawk;I:Lbhb;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;
-
field_15174
- Mappings:
Namespace Name Mixin selector official JLawk;J:Lbhb;intermediary field_15174Lnet/minecraft/class_228;field_15174:Lnet/minecraft/class_231;named field_15174Lnet/minecraft/block/PistonHeadBlock;field_15174:Lnet/minecraft/util/math/Box;
-
field_15175
- Mappings:
Namespace Name Mixin selector official KLawk;K:Lbhb;intermediary field_15175Lnet/minecraft/class_228;field_15175:Lnet/minecraft/class_231;named field_15175Lnet/minecraft/block/PistonHeadBlock;field_15175:Lnet/minecraft/util/math/Box;
-
field_15176
- Mappings:
Namespace Name Mixin selector official LLawk;L:Lbhb;intermediary field_15176Lnet/minecraft/class_228;field_15176:Lnet/minecraft/class_231;named field_15176Lnet/minecraft/block/PistonHeadBlock;field_15176:Lnet/minecraft/util/math/Box;
-
field_15177
- Mappings:
Namespace Name Mixin selector official MLawk;M:Lbhb;intermediary field_15177Lnet/minecraft/class_228;field_15177:Lnet/minecraft/class_231;named field_15177Lnet/minecraft/block/PistonHeadBlock;field_15177:Lnet/minecraft/util/math/Box;
-
field_15178
- Mappings:
Namespace Name Mixin selector official NLawk;N:Lbhb;intermediary field_15178Lnet/minecraft/class_228;field_15178:Lnet/minecraft/class_231;named field_15178Lnet/minecraft/block/PistonHeadBlock;field_15178:Lnet/minecraft/util/math/Box;
-
field_15179
- Mappings:
Namespace Name Mixin selector official OLawk;O:Lbhb;intermediary field_15179Lnet/minecraft/class_228;field_15179:Lnet/minecraft/class_231;named field_15179Lnet/minecraft/block/PistonHeadBlock;field_15179:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
PistonHeadBlock
public PistonHeadBlock()
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;Lamy;Let;)Lbhb;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, boolean isActualState) - Overrides:
appendCollisionBoxesin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Lbhb;Ljava/util/List;Lvg;Z)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;Z)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;Z)V
-
method_11700
- Mappings:
Namespace Name Mixin selector official xLawk;x(Lawt;)Lbhb;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 kLaow;k(Lawt;)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 aLaow;a(Lamu;Let;Lawt;Laed;)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 bLaow;b(Lamu;Let;Lawt;)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 bLaow;b(Lawt;)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 cLaow;c(Lawt;)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 aLaow;a(Lamu;Let;)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 bLaow;b(Lamu;Let;Lfa;)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 aLaow;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
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Laow;Let;)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_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 aLaow;a(Lawt;Lamy;Let;Lfa;)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 bLawk;b(I)Lfa;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 aLaow;a(Lamu;Let;Lawt;)Laip;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 aLaow;a(I)Lawt;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 eLaow;e(Lawt;)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 aLaow;a(Lawt;Latm;)Lawt;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 aLaow;a(Lawt;Lary;)Lawt;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 bLaow;b()Lawu;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
method_14307
public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) - Overrides:
method_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamy;Lawt;Let;Lfa;)Lawr;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;
-