Package net.minecraft.block
Class PistonBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.PistonBlock
- Mappings:
Namespace Name official aquintermediary net/minecraft/class_227named net/minecraft/block/PistonBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertyprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprivate final booleanFields 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.getCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idbooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) booleanmethod_11568(BlockState state) booleanmethod_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) voidmethod_8641(BlockState blockState, World world, BlockPos blockPos, Block block) static Directionmethod_9000(BlockPos blockPos, LivingEntity livingEntity) static booleanmethod_9001(BlockState blockState, World world, BlockPos blockPos, Direction direction, boolean bool) static Directionmethod_9002(int int2) private voidmethod_9003(World world, BlockPos blockPos, BlockState blockState) private booleanvoidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).voidonPlaced(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) 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, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, 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_414, method_421, method_8638, method_8640, method_8651, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight
-
Field Details
-
EXTENDED
- Mappings:
Namespace Name Mixin selector official aLaqu;a:Laro;intermediary field_9862Lnet/minecraft/class_227;field_9862:Lnet/minecraft/class_2243;named EXTENDEDLnet/minecraft/block/PistonBlock;EXTENDED:Lnet/minecraft/state/property/BooleanProperty;
-
field_12881
- Mappings:
Namespace Name Mixin selector official bLaqu;b:Lbbf;intermediary field_12881Lnet/minecraft/class_227;field_12881:Lnet/minecraft/class_231;named field_12881Lnet/minecraft/block/PistonBlock;field_12881:Lnet/minecraft/util/math/Box;
-
field_12882
- Mappings:
Namespace Name Mixin selector official cLaqu;c:Lbbf;intermediary field_12882Lnet/minecraft/class_227;field_12882:Lnet/minecraft/class_231;named field_12882Lnet/minecraft/block/PistonBlock;field_12882:Lnet/minecraft/util/math/Box;
-
field_12883
- Mappings:
Namespace Name Mixin selector official dLaqu;d:Lbbf;intermediary field_12883Lnet/minecraft/class_227;field_12883:Lnet/minecraft/class_231;named field_12883Lnet/minecraft/block/PistonBlock;field_12883:Lnet/minecraft/util/math/Box;
-
field_12884
- Mappings:
Namespace Name Mixin selector official eLaqu;e:Lbbf;intermediary field_12884Lnet/minecraft/class_227;field_12884:Lnet/minecraft/class_231;named field_12884Lnet/minecraft/block/PistonBlock;field_12884:Lnet/minecraft/util/math/Box;
-
field_12885
- Mappings:
Namespace Name Mixin selector official fLaqu;f:Lbbf;intermediary field_12885Lnet/minecraft/class_227;field_12885:Lnet/minecraft/class_231;named field_12885Lnet/minecraft/block/PistonBlock;field_12885:Lnet/minecraft/util/math/Box;
-
field_12886
- Mappings:
Namespace Name Mixin selector official gLaqu;g:Lbbf;intermediary field_12886Lnet/minecraft/class_227;field_12886:Lnet/minecraft/class_231;named field_12886Lnet/minecraft/block/PistonBlock;field_12886:Lnet/minecraft/util/math/Box;
-
isSticky
private final boolean isSticky- Mappings:
Namespace Name Mixin selector official BLaqu;B:Zintermediary field_572Lnet/minecraft/class_227;field_572:Znamed isStickyLnet/minecraft/block/PistonBlock;isSticky:Z
-
-
Constructor Details
-
PistonBlock
public PistonBlock(boolean bool)
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;)Lbbf;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;
-
method_11568
- Overrides:
method_11568in classBlock- Mappings:
Namespace Name Mixin selector official kLajt;k(Lard;)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
-
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 aLajt;a(Lard;Laht;Lcl;Lbbf;Ljava/util/List;Lrr;)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
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/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:
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 aLajt;a(Laht;Lcl;Lard;Lsa;Ladq;)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
-
method_8641
- Overrides:
method_8641in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Lajt;)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
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin 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 cLajt;c(Laht;Lcl;Lard;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/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:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;intermediary method_8645Lnet/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 getStateFromDataLnet/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
- Mappings:
Namespace Name Mixin selector official eLaqu;e(Laht;Lcl;Lard;)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 aLaqu;a(Laht;Lcl;Lcs;)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 aLajt;a(Lard;Laht;Lcl;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 cLajt;c(Lard;)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_9002
- Mappings:
Namespace Name Mixin selector official eLaqu;e(I)Lcs;intermediary method_9002Lnet/minecraft/class_227;method_9002(I)Lnet/minecraft/class_1354;named method_9002Lnet/minecraft/block/PistonBlock;method_9002(I)Lnet/minecraft/util/math/Direction;
-
method_9000
- Mappings:
Namespace Name Mixin selector official aLaqu;a(Lcl;Lsa;)Lcs;intermediary method_9000Lnet/minecraft/class_227;method_9000(Lnet/minecraft/class_2552;Lnet/minecraft/class_1699;)Lnet/minecraft/class_1354;named method_9000Lnet/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 aLaqu;a(Lard;Laht;Lcl;Lcs;Z)Zintermediary method_9001Lnet/minecraft/class_227;method_9001(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Z)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;Z)Z
-
move
- Mappings:
Namespace Name Mixin selector official aLaqu;a(Laht;Lcl;Lcs;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
-
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 aLajt;a(I)Lard;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 eLajt;e(Lard;)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 aLajt;a(Lard;Laoe;)Lard;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 aLajt;a(Lard;Lamr;)Lard;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 bLajt;b()Lare;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-