net.minecraft.world.level.block.piston

public class PistonHeadBlock

extends DirectionalBlock

All mapped superinterfaces:

ItemLike

cnw
net.minecraft.world.level.block.piston.PistonHeadBlock
net.minecraft.class_2671
net.minecraft.block.PistonHeadBlock
net.minecraft.src.C_2049_
net.minecraft.world.level.block.piston.BlockPistonExtension

Field summary

Modifier and TypeField
public static final EnumProperty<PistonType>
b
TYPE
field_12224
TYPE
f_60235_
public static final BooleanProperty
c
SHORT
field_12227
SHORT
f_60236_
public static final float
d
PLATFORM
field_31377
field_31377
f_155892_
protected static final VoxelShape
e
EAST_AABB
field_12222
EAST_HEAD_SHAPE
f_60237_
protected static final VoxelShape
f
WEST_AABB
field_12214
WEST_HEAD_SHAPE
f_60238_
protected static final VoxelShape
g
SOUTH_AABB
field_12228
SOUTH_HEAD_SHAPE
f_60239_
protected static final VoxelShape
h
NORTH_AABB
field_12213
NORTH_HEAD_SHAPE
f_60240_
protected static final VoxelShape
i
UP_AABB
field_12230
UP_HEAD_SHAPE
f_60241_
protected static final VoxelShape
j
DOWN_AABB
field_12220
DOWN_HEAD_SHAPE
f_60242_
protected static final float
k
AABB_OFFSET
field_31378
field_31378
f_155893_
protected static final float
l
EDGE_MIN
field_31379
field_31379
f_155894_
protected static final float
m
EDGE_MAX
field_31380
field_31380
f_155895_
protected static final VoxelShape
n
UP_ARM_AABB
field_12215
UP_ARM_SHAPE
f_60243_
protected static final VoxelShape
F
DOWN_ARM_AABB
field_12226
DOWN_ARM_SHAPE
f_60244_
protected static final VoxelShape
G
SOUTH_ARM_AABB
field_12221
SOUTH_ARM_SHAPE
f_60245_
protected static final VoxelShape
H
NORTH_ARM_AABB
field_12229
NORTH_ARM_SHAPE
f_60246_
protected static final VoxelShape
I
EAST_ARM_AABB
field_12218
EAST_ARM_SHAPE
f_60247_
protected static final VoxelShape
J
WEST_ARM_AABB
field_12223
WEST_ARM_SHAPE
f_60248_
protected static final VoxelShape
K
SHORT_UP_ARM_AABB
field_12231
SHORT_UP_ARM_SHAPE
f_60249_
protected static final VoxelShape
L
SHORT_DOWN_ARM_AABB
field_12217
SHORT_DOWN_ARM_SHAPE
f_60250_
protected static final VoxelShape
M
SHORT_SOUTH_ARM_AABB
field_12216
SHORT_SOUTH_ARM_SHAPE
f_60251_
protected static final VoxelShape
N
SHORT_NORTH_ARM_AABB
field_12225
SHORT_NORTH_ARM_SHAPE
f_60252_
protected static final VoxelShape
O
SHORT_EAST_ARM_AABB
field_12219
SHORT_EAST_ARM_SHAPE
f_60253_
protected static final VoxelShape
P
SHORT_WEST_ARM_AABB
field_12212
SHORT_WEST_ARM_SHAPE
f_60254_
private static final VoxelShape[]
Q
SHAPES_SHORT
field_26660
SHORT_HEAD_SHAPES
f_60255_
private static final VoxelShape[]
R
SHAPES_LONG
field_26661
HEAD_SHAPES
f_60256_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
private static VoxelShape[]
a(boolean arg0)
makeShapes(boolean arg0)
method_31019(boolean arg0)
getHeadShapes(boolean shortHead)
m_60312_(boolean p_60313_)
private static VoxelShape
a(gm arg0, boolean arg1)
calculateShape(Direction arg0, boolean arg1)
method_11520(class_2350 arg0, boolean arg1)
getHeadShape(Direction direction, boolean shortHead)
m_60309_(C_4687_ p_60310_, boolean p_60311_)
public boolean
g_(coc arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
m_7923_(C_2064_ arg0)
public VoxelShape
a(coc arg0, bzj arg1, gh arg2, dor 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)
m_5940_(C_2064_ p_60321_, C_1559_ p_60322_, C_4675_ p_60323_, C_3051_ arg3)
private boolean
a(coc arg0, coc arg1)
isFittingBase(BlockState arg0, BlockState arg1)
method_26980(class_2680 arg0, class_2680 arg1)
isAttached(BlockState headState, BlockState pistonState)
m_60297_(C_2064_ p_60299_, C_2064_ arg1)
public void
a(cad arg0, gh arg1, coc arg2, bnr 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)
m_5707_(C_1596_ p_60266_, C_4675_ p_60267_, C_2064_ p_60268_, C_1141_ arg3)
public void
a(coc arg0, cad arg1, gh arg2, coc 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)
m_6810_(C_2064_ p_60283_, C_1596_ p_60284_, C_4675_ p_60285_, C_2064_ p_60286_, boolean arg4)
public BlockState
a(coc arg0, gm arg1, coc arg2, cae arg3, gh arg4, gh arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
getStateForNeighborUpdate(BlockState arg0, Direction arg1, BlockState arg2, WorldAccess arg3, BlockPos arg4, BlockPos arg5)
m_7417_(C_2064_ p_60302_, C_4687_ p_60303_, C_2064_ p_60304_, C_1598_ p_60305_, C_4675_ p_60306_, C_4675_ arg5)
public boolean
a(coc arg0, cag arg1, gh 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)
m_7898_(C_2064_ p_60289_, C_1599_ p_60290_, C_4675_ arg2)
public void
a(coc arg0, cad arg1, gh arg2, ccy arg3, gh arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, BlockPos arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_2338 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, BlockPos arg4, boolean arg5)
m_6861_(C_2064_ p_60276_, C_1596_ p_60277_, C_4675_ p_60278_, C_1706_ p_60279_, C_4675_ p_60280_, boolean arg5)
public ItemStack
a(bzj arg0, gh arg1, coc arg2)
getCloneItemStack(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_9574(class_1922 arg0, class_2338 arg1, class_2680 arg2)
getPickStack(BlockView arg0, BlockPos arg1, BlockState arg2)
m_7397_(C_1559_ p_60262_, C_4675_ p_60263_, C_2064_ arg2)
public BlockState
a(coc arg0, ciu arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
m_6843_(C_2064_ p_60296_, C_1886_ arg1)
public BlockState
a(coc arg0, chh arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
m_6943_(C_2064_ p_60293_, C_1838_ arg1)
protected void
a(cod$a<ccy, coc> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)
public boolean
a(coc arg0, bzj arg1, gh arg2, dim arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
canPathfindThrough(BlockState arg0, BlockView arg1, BlockPos arg2, NavigationType arg3)
m_7357_(C_2064_ p_60271_, C_1559_ p_60272_, C_4675_ p_60273_, C_2754_ arg3)