Package net.minecraft.world.item.context
Class UseOnContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
- Direct Known Subclasses:
BlockPlaceContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate InteractionHand
private BlockHitResult
private ItemStack
private Level
private Player
-
Constructor Summary
ConstructorDescriptionUseOnContext(Player p_43709_, InteractionHand p_43710_, BlockHitResult p_43711_)
UseOnContext(Level p_43713_, Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_)
-
Method Summary
Modifier and TypeMethodDescriptiongetHand()
protected BlockHitResult
getLevel()
float
boolean
isInside()
boolean
-
Field Details
-
player
-
hand
-
hitResult
-
level
-
itemStack
-
-
Constructor Details
-
UseOnContext
-
UseOnContext
public UseOnContext(Level p_43713_, @Nullable Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_)
-
-
Method Details
-
getHitResult
-
getClickedPos
-
getClickedFace
-
getClickLocation
-
isInside
public boolean isInside() -
getItemInHand
-
getPlayer
-
getHand
-
getLevel
-
getHorizontalDirection
-
isSecondaryUseActive
public boolean isSecondaryUseActive() -
getRotation
public float getRotation()
-