net.minecraft.world.item.context

public class DirectionalPlaceContext

extends BlockPlaceContext

clo
net.minecraft.world.item.context.DirectionalPlaceContext
net.minecraft.class_2968
net.minecraft.item.AutomaticItemPlacementContext
net.minecraft.src.C_1446_
net.minecraft.world.item.context.BlockActionContextDirectional

Field summary

Modifier and TypeField
private final Direction
b
direction
field_13362
facing
f_43648_

Constructor summary

ModifierConstructor
public (Level world, BlockPos pos, Direction facing, ItemStack stack, Direction side)

Method summary

Modifier and TypeMethod
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
m_8083_()
public boolean
b()
canPlace()
method_7716()
canPlace()
m_7059_()
public boolean
c()
replacingClickedOnBlock()
method_7717()
canReplaceExisting()
m_7058_()
public Direction
d()
getNearestLookingDirection()
method_7715()
getPlayerLookDirection()
m_7820_()
public Direction[]
f()
getNearestLookingDirections()
method_7718()
getPlacementDirections()
m_6232_()
public Direction
g()
getHorizontalDirection()
method_8042()
getHorizontalPlayerFacing()
m_8125_()
public boolean
h()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
m_7078_()
public float
i()
getRotation()
method_8044()
getPlayerYaw()
m_7074_()