net.minecraft.world.item.context

public class UseOnContext

ccz
net.minecraft.world.item.context.UseOnContext
net.minecraft.class_1838
net.minecraft.item.ItemUsageContext
net.minecraft.src.C_1450_
net.minecraft.world.item.context.ItemActionContext

Field summary

Modifier and TypeField
private final Player
a
player
field_8942
player
f_43703_
private final InteractionHand
b
hand
field_19176
hand
f_43704_
private final BlockHitResult
c
hitResult
field_17543
hit
f_43705_
private final Level
d
level
field_8945
world
f_43706_
private final ItemStack
e
itemStack
field_8941
stack
f_43707_

Constructor summary

ModifierConstructor
public (Player player, InteractionHand hand, BlockHitResult hit)
protected (Level world, Player player, InteractionHand hand, ItemStack stack, BlockHitResult hit)

Method summary

Modifier and TypeMethod
protected final BlockHitResult
j()
getHitResult()
method_30344()
getHitResult()
m_43718_()
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
m_8083_()
public Direction
k()
getClickedFace()
method_8038()
getSide()
m_43719_()
public Vec3
l()
getClickLocation()
method_17698()
getHitPos()
m_43720_()
public boolean
m()
isInside()
method_17699()
hitsInsideBlock()
m_43721_()
public ItemStack
n()
getItemInHand()
method_8041()
getStack()
m_43722_()
public Player
o()
getPlayer()
method_8036()
getPlayer()
m_43723_()
public InteractionHand
p()
getHand()
method_20287()
getHand()
m_43724_()
public Level
q()
getLevel()
method_8045()
getWorld()
m_43725_()
public Direction
g()
getHorizontalDirection()
method_8042()
getPlayerFacing()
m_8125_()
public boolean
h()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
m_7078_()
public float
i()
getRotation()
method_8044()
getPlayerYaw()
m_7074_()