net.minecraft.world.level.block.piston

public class PistonBaseBlock

extends DirectionalBlock

All mapped superinterfaces:

FeatureElement, ItemLike

dsv
net.minecraft.world.level.block.piston.PistonBaseBlock
net.minecraft.class_2665
net.minecraft.block.PistonBlock
net.minecraft.src.C_2047_
net.minecraft.world.level.block.piston.BlockPiston

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<PistonBaseBlock>
b
CODEC
field_46530
CODEC
f_302388_
public static final BooleanProperty
c
EXTENDED
field_12191
EXTENDED
f_60153_
public static final int
d
TRIGGER_EXTEND
field_31373
field_31373
f_155888_
public static final int
e
TRIGGER_CONTRACT
field_31374
field_31374
f_155889_
public static final int
f
TRIGGER_DROP
field_31375
field_31375
f_155890_
public static final float
g
PLATFORM_THICKNESS
field_31376
field_31376
f_155891_
protected static final VoxelShape
h
EAST_AABB
field_12188
EXTENDED_EAST_SHAPE
f_60154_
protected static final VoxelShape
i
WEST_AABB
field_12184
EXTENDED_WEST_SHAPE
f_60155_
protected static final VoxelShape
j
SOUTH_AABB
field_12186
EXTENDED_SOUTH_SHAPE
f_60156_
protected static final VoxelShape
k
NORTH_AABB
field_12189
EXTENDED_NORTH_SHAPE
f_60157_
protected static final VoxelShape
l
UP_AABB
field_12185
EXTENDED_UP_SHAPE
f_60158_
protected static final VoxelShape
m
DOWN_AABB
field_12190
EXTENDED_DOWN_SHAPE
f_60159_
private final boolean
n
isSticky
field_12187
sticky
f_60160_

Constructor summary

ModifierConstructor
public (boolean sticky, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<PistonBaseBlock>
a()
codec()
method_53969()
getCodec()
m_304657_()
protected VoxelShape
a(dtc arg0, dcc arg1, jd arg2, exh 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_60221_, C_1559_ p_60222_, C_4675_ p_60223_, C_3051_ arg3)
public void
a(dcw arg0, jd arg1, dtc arg2, btn arg3, cuq arg4)
setPlacedBy(Level arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
method_9567(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1309 arg3, class_1799 arg4)
onPlaced(World arg0, BlockPos arg1, BlockState arg2, LivingEntity arg3, ItemStack arg4)
m_6402_(C_1596_ p_60173_, C_4675_ p_60174_, C_2064_ p_60175_, C_524_ p_60176_, C_1391_ arg4)
protected void
a(dtc arg0, dcw arg1, jd arg2, dfy arg3, jd 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_60199_, C_1596_ p_60200_, C_4675_ p_60201_, C_1706_ p_60202_, C_4675_ p_60203_, boolean arg5)
protected void
b(dtc arg0, dcw arg1, jd arg2, dtc arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6807_(C_2064_ p_60226_, C_1596_ p_60227_, C_4675_ p_60228_, C_2064_ p_60229_, boolean arg4)
public BlockState
a(cyd arg0)
getStateForPlacement(BlockPlaceContext arg0)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
m_5573_(C_1445_ arg0)
private void
a(dcw arg0, jd arg1, dtc arg2)
checkIfExtend(Level arg0, BlockPos arg1, BlockState arg2)
method_11483(class_1937 arg0, class_2338 arg1, class_2680 arg2)
tryMove(World world, BlockPos pos, BlockState state)
m_60167_(C_1596_ p_60169_, C_4675_ p_60170_, C_2064_ arg2)
private boolean
a(ddm arg0, jd arg1, ji arg2)
getNeighborSignal(SignalGetter arg0, BlockPos arg1, Direction arg2)
method_11482(class_8235 arg0, class_2338 arg1, class_2350 arg2)
shouldExtend(RedstoneView world, BlockPos pos, Direction pistonFace)
m_60177_(C_276415_ p_60179_, C_4675_ p_60180_, C_4687_ arg2)
protected boolean
a(dtc arg0, dcw arg1, jd arg2, int arg3, int arg4)
triggerEvent(BlockState arg0, Level arg1, BlockPos arg2, int arg3, int arg4)
method_9592(class_2680 arg0, class_1937 arg1, class_2338 arg2, int arg3, int arg4)
onSyncedBlockEvent(BlockState arg0, World arg1, BlockPos arg2, int arg3, int arg4)
m_8133_(C_2064_ p_60193_, C_1596_ p_60194_, C_4675_ p_60195_, int p_60196_, int arg4)
public static boolean
a(dtc arg0, dcw arg1, jd arg2, ji arg3, boolean arg4, ji arg5)
isPushable(BlockState arg0, Level arg1, BlockPos arg2, Direction arg3, boolean arg4, Direction arg5)
method_11484(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2350 arg3, boolean arg4, class_2350 arg5)
isMovable(BlockState state, World world, BlockPos pos, Direction direction, boolean canBreak, Direction pistonDir)
m_60204_(C_2064_ p_60205_, C_1596_ p_60206_, C_4675_ p_60207_, C_4687_ p_60208_, boolean p_60209_, C_4687_ p_60210_)
private boolean
a(dcw arg0, jd arg1, ji arg2, boolean arg3)
moveBlocks(Level arg0, BlockPos arg1, Direction arg2, boolean arg3)
method_11481(class_1937 arg0, class_2338 arg1, class_2350 arg2, boolean arg3)
move(World world, BlockPos pos, Direction dir, boolean retract)
m_60181_(C_1596_ p_60183_, C_4675_ p_60184_, C_4687_ p_60185_, boolean arg3)
protected BlockState
a(dtc arg0, dmm arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState arg0, BlockRotation arg1)
m_6843_(C_2064_ p_60216_, C_1886_ arg1)
protected BlockState
a(dtc arg0, dkv arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState arg0, BlockMirror arg1)
m_6943_(C_2064_ p_60213_, C_1838_ arg1)
protected void
a(dtd$a<dfy, dtc> 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)
protected boolean
f_(dtc arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState arg0)
m_7923_(C_2064_ arg0)
protected boolean
a(dtc arg0, ept arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
m_7357_(C_2064_ p_60190_, C_2754_ arg1)