net.minecraft.world.item.context

public class BlockPlaceContext

extends UseOnContext

cyc
net.minecraft.world.item.context.BlockPlaceContext
net.minecraft.class_1750
net.minecraft.unmapped.C_aiootljq
net.minecraft.item.ItemPlacementContext
net.minecraft.item.ItemPlacementContext
net.minecraft.src.C_1445_
net.minecraft.world.item.context.BlockActionContext

Field summary

Modifier and TypeField
private final BlockPos
b
relativePos
field_7903
f_wnoksezm
placementPos
placementPos
f_43629_
protected boolean
a
replaceClicked
field_7904
f_pckvuctn
canReplaceExisting
canReplaceExisting
f_43628_

Constructor summary

ModifierConstructor
public (Player player, InteractionHand hand, ItemStack stack, BlockHitResult hitResult)
public (UseOnContext context)
protected (Level world, Player player, InteractionHand p_43641_, ItemStack stack, BlockHitResult result)

Method summary

Modifier and TypeMethod
public static BlockPlaceContext
a(cyc arg0, iz arg1, je arg2)
at(BlockPlaceContext arg0, BlockPos arg1, Direction arg2)
method_16355(class_1750 arg0, class_2338 arg1, class_2350 arg2)
m_egmxwodh(C_aiootljq arg0, C_hynzadkk arg1, C_xpuuihxf arg2)
offset(ItemPlacementContext context, BlockPos pos, Direction side)
offset(ItemPlacementContext context, BlockPos pos, Direction side)
m_43644_(C_1445_ p_43645_, C_4675_ p_43646_, C_4687_ p_43647_)
public BlockPos
a()
getClickedPos()
method_8037()
m_etvpwcoa()
getBlockPos()
getBlockPos()
m_8083_()
public boolean
b()
canPlace()
method_7716()
m_yqsaetuv()
canPlace()
canPlace()
m_7059_()
public boolean
c()
replacingClickedOnBlock()
method_7717()
m_klwcybwt()
canReplaceExisting()
canReplaceExisting()
m_7058_()
public Direction
d()
getNearestLookingDirection()
method_7715()
m_bnjauzop()
getPlayerLookDirection()
getPlayerLookDirection()
m_7820_()
public Direction
e()
getNearestLookingVerticalDirection()
method_32760()
m_damfxygq()
getVerticalPlayerLookDirection()
getVerticalPlayerLookDirection()
m_151260_()
public Direction[]
f()
getNearestLookingDirections()
method_7718()
m_ctvkvgfz()
getPlacementDirections()
getPlacementDirections()
m_6232_()