net.minecraft.world.item.context

public class UseOnContext

boa
net.minecraft.world.item.context.UseOnContext
net.minecraft.class_1838
net.minecraft.item.ItemUsageContext
net.minecraft.item.ItemUseContext
net.minecraft.server.v1_16_R3.ItemActionContext

Field summary

Modifier and TypeField
private final Player
a
player
field_8942
player
field_196001_b
private final InteractionHand
b
hand
field_19176
hand
field_221534_c
private final BlockHitResult
c
hitResult
field_17543
hit
field_221535_d
private final Level
d
level
field_8945
world
field_196006_g
private final ItemStack
e
itemStack
field_8941
stack
field_196007_h

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
i()
getHitResult()
method_30344()
getHitResult()
func_242401_i()
public BlockPos
a()
getClickedPos()
method_8037()
getBlockPos()
func_195995_a()
getClickPosition()
public Direction
j()
getClickedFace()
method_8038()
getSide()
func_196000_l()
getClickedFace()
public Vec3
k()
getClickLocation()
method_17698()
getHitPos()
func_221532_j()
getPos()
public boolean
l()
isInside()
method_17699()
hitsInsideBlock()
func_221533_k()
public ItemStack
m()
getItemInHand()
method_8041()
getStack()
func_195996_i()
getItemStack()
public Player
n()
getPlayer()
method_8036()
getPlayer()
func_195999_j()
getEntity()
public InteractionHand
o()
getHand()
method_20287()
getHand()
func_221531_n()
getHand()
public Level
p()
getLevel()
method_8045()
getWorld()
func_195991_k()
getWorld()
public Direction
f()
getHorizontalDirection()
method_8042()
getPlayerFacing()
func_195992_f()
public boolean
g()
isSecondaryUseActive()
method_8046()
shouldCancelInteraction()
func_225518_g_()
isSneaking()
public float
h()
getRotation()
method_8044()
getPlayerYaw()
func_195990_h()