Package net.minecraft.world.item.context
Class UseOnContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
- Direct Known Subclasses:
 BlockPlaceContext
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InteractionHandprivate final BlockHitResultprivate final ItemStackprivate final Levelprivate final Player - 
Constructor Summary
ConstructorsConstructorDescriptionUseOnContext(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 final BlockHitResultgetLevel()floatbooleanisInside()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() 
 -