Package net.minecraft.world.item.context
Class UseOnContext
java.lang.Object
net.minecraft.world.item.context.UseOnContext
- Direct Known Subclasses:
- BlockPlaceContext
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final InteractionHandprivate final BlockHitResultprivate final ItemStackprivate final Levelprivate final Player
- 
Constructor SummaryConstructorsConstructorDescriptionUseOnContext(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 SummaryModifier and TypeMethodDescriptiongetHand()protected final BlockHitResultgetLevel()floatbooleanisInside()boolean
- 
Field Details- 
player
- 
hand
- 
hitResult
- 
level
- 
itemStack
 
- 
- 
Constructor Details- 
UseOnContext
- 
UseOnContextpublic UseOnContext(Level p_43713_, @Nullable Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_) 
 
- 
- 
Method Details- 
getHitResult
- 
getClickedPos
- 
getClickedFace
- 
getClickLocation
- 
isInsidepublic boolean isInside()
- 
getItemInHand
- 
getPlayer
- 
getHand
- 
getLevel
- 
getHorizontalDirection
- 
isSecondaryUseActivepublic boolean isSecondaryUseActive()
- 
getRotationpublic float getRotation()
 
-