net.minecraft.world.item.context

public class BlockPlaceContext

extends UseOnContext

dgo
net.minecraft.world.item.context.BlockPlaceContext

Field summary

Modifier and TypeField
private final BlockPos
b
relativePos
protected boolean
a
replaceClicked

Constructor summary

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

Method summary

Modifier and TypeMethod
public static BlockPlaceContext
a(dgo arg0, jb arg1, jh arg2)
at(BlockPlaceContext arg0, BlockPos arg1, Direction arg2)
public BlockPos
a()
getClickedPos()
public boolean
b()
canPlace()
public boolean
c()
replacingClickedOnBlock()
public Direction
d()
getNearestLookingDirection()
public Direction
e()
getNearestLookingVerticalDirection()
public Direction[]
f()
getNearestLookingDirections()