net.minecraft.world.item.context

public class BlockPlaceContext

extends UseOnContext

dah
net.minecraft.world.item.context.BlockPlaceContext
net.minecraft.class_1750
net.minecraft.item.ItemPlacementContext
net.minecraft.world.item.context.BlockActionContext

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public static BlockPlaceContext
a(dah arg0, ji arg1, jn arg2)
at(BlockPlaceContext arg0, BlockPos arg1, Direction arg2)
method_16355(class_1750 arg0, class_2338 arg1, class_2350 arg2)
offset(ItemPlacementContext context, BlockPos pos, Direction side)
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
public boolean
b()
canPlace()
method_7716()
canPlace()
public boolean
c()
replacingClickedOnBlock()
method_7717()
canReplaceExisting()
public Direction
d()
getNearestLookingDirection()
method_7715()
getPlayerLookDirection()
public Direction
e()
getNearestLookingVerticalDirection()
method_32760()
getVerticalPlayerLookDirection()
public Direction[]
f()
getNearestLookingDirections()
method_7718()
getPlacementDirections()