net.minecraft.world.item.context

public class BlockPlaceContext

extends UseOnContext

bnv
net.minecraft.world.item.context.BlockPlaceContext
net.minecraft.class_1750
net.minecraft.unmapped.C_aiootljq
net.minecraft.item.ItemPlacementContext
net.minecraft.item.BlockItemUseContext
net.minecraft.server.v1_16_R2.BlockActionContext

Field summary

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

Constructor summary

ModifierConstructor
public (Player arg0, InteractionHand arg1, ItemStack arg2, BlockHitResult arg3)
public (UseOnContext context)
protected (Level arg0, Player arg1, InteractionHand arg2, ItemStack arg3, BlockHitResult arg4)

Method summary

Modifier and TypeMethod
public static BlockPlaceContext
a(bnv arg0, fx arg1, gc 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)
func_221536_a(BlockItemUseContext arg0, BlockPos arg1, Direction arg2)
public BlockPos
a()
getClickedPos()
method_8037()
m_etvpwcoa()
getBlockPos()
func_195995_a()
getClickPosition()
public boolean
b()
canPlace()
method_7716()
m_yqsaetuv()
canPlace()
func_196011_b()
public boolean
c()
replacingClickedOnBlock()
method_7717()
m_klwcybwt()
canReplaceExisting()
func_196012_c()
public Direction
d()
getNearestLookingDirection()
method_7715()
m_bnjauzop()
getPlayerLookDirection()
func_196010_d()
public Direction[]
e()
getNearestLookingDirections()
method_7718()
m_ctvkvgfz()
getPlacementDirections()
func_196009_e()