net.minecraft.world.level.block.piston

public class PistonHeadBlock

extends DirectionalBlock

All mapped superinterfaces:

FeatureElement, ItemLike

dxp
net.minecraft.world.level.block.piston.PistonHeadBlock
net.minecraft.class_2671
net.minecraft.block.PistonHeadBlock
net.minecraft.world.level.block.piston.BlockPistonExtension

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<PistonHeadBlock>
b
CODEC
field_46531
CODEC
public static final EnumProperty<PistonType>
c
TYPE
field_12224
TYPE
public static final BooleanProperty
d
SHORT
field_12227
SHORT
public static final float
e
PLATFORM
field_31377
field_31377
protected static final VoxelShape
f
EAST_AABB
field_12222
EAST_HEAD_SHAPE
protected static final VoxelShape
g
WEST_AABB
field_12214
WEST_HEAD_SHAPE
protected static final VoxelShape
h
SOUTH_AABB
field_12228
SOUTH_HEAD_SHAPE
protected static final VoxelShape
i
NORTH_AABB
field_12213
NORTH_HEAD_SHAPE
protected static final VoxelShape
j
UP_AABB
field_12230
UP_HEAD_SHAPE
protected static final VoxelShape
k
DOWN_AABB
field_12220
DOWN_HEAD_SHAPE
protected static final float
l
AABB_OFFSET
field_31378
field_31378
protected static final float
m
EDGE_MIN
field_31379
field_31379
protected static final float
n
EDGE_MAX
field_31380
field_31380
protected static final VoxelShape
o
UP_ARM_AABB
field_12215
UP_ARM_SHAPE
protected static final VoxelShape
G
DOWN_ARM_AABB
field_12226
DOWN_ARM_SHAPE
protected static final VoxelShape
H
SOUTH_ARM_AABB
field_12221
SOUTH_ARM_SHAPE
protected static final VoxelShape
I
NORTH_ARM_AABB
field_12229
NORTH_ARM_SHAPE
protected static final VoxelShape
J
EAST_ARM_AABB
field_12218
EAST_ARM_SHAPE
protected static final VoxelShape
K
WEST_ARM_AABB
field_12223
WEST_ARM_SHAPE
protected static final VoxelShape
L
SHORT_UP_ARM_AABB
field_12231
SHORT_UP_ARM_SHAPE
protected static final VoxelShape
M
SHORT_DOWN_ARM_AABB
field_12217
SHORT_DOWN_ARM_SHAPE
protected static final VoxelShape
N
SHORT_SOUTH_ARM_AABB
field_12216
SHORT_SOUTH_ARM_SHAPE
protected static final VoxelShape
O
SHORT_NORTH_ARM_AABB
field_12225
SHORT_NORTH_ARM_SHAPE
protected static final VoxelShape
P
SHORT_EAST_ARM_AABB
field_12219
SHORT_EAST_ARM_SHAPE
protected static final VoxelShape
Q
SHORT_WEST_ARM_AABB
field_12212
SHORT_WEST_ARM_SHAPE
private static final VoxelShape[]
R
SHAPES_SHORT
field_26660
SHORT_HEAD_SHAPES
private static final VoxelShape[]
S
SHAPES_LONG
field_26661
HEAD_SHAPES

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
protected com.mojang.serialization.MapCodec<PistonHeadBlock>
a()
codec()
method_53969()
getCodec()
private static VoxelShape[]
a(boolean arg0)
makeShapes(boolean arg0)
method_31019(boolean arg0)
getHeadShapes(boolean shortHead)
private static VoxelShape
a(jm arg0, boolean arg1)
calculateShape(Direction arg0, boolean arg1)
method_11520(class_2350 arg0, boolean arg1)
getHeadShape(Direction direction, boolean shortHead)
protected boolean
g_(dxv arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2, fcd arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
private boolean
a(dxv arg0, dxv arg1)
isFittingBase(BlockState arg0, BlockState arg1)
method_26980(class_2680 arg0, class_2680 arg1)
isAttached(BlockState headState, BlockState pistonState)
public BlockState
a(dhi arg0, jh arg1, dxv arg2, cpx arg3)
playerWillDestroy(Level arg0, BlockPos arg1, BlockState arg2, Player arg3)
method_9576(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1657 arg3)
onBreak(World arg0, BlockPos arg1, BlockState arg2, PlayerEntity arg3)
protected void
a(dxv arg0, dhi arg1, jh arg2, dxv arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
protected BlockState
a(dxv arg0, dhl arg1, dhx arg2, jh arg3, jm arg4, jh arg5, dxv arg6, bam arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected boolean
a(dxv arg0, dhl arg1, jh arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected void
a(dxv arg0, dhi arg1, jh arg2, dkm arg3, evf arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
public ItemStack
a(dhl arg0, jh arg1, dxv arg2)
getCloneItemStack(LevelReader arg0, BlockPos arg1, BlockState arg2)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2)
getPickStack(WorldView arg0, BlockPos arg1, BlockState arg2)
protected BlockState
a(dxv arg0, drc arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
protected BlockState
a(dxv arg0, dpl arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
protected void
a(dxw$a<dkm, dxv> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
a(dxv arg0, eum arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)