Class UseOnContext

java.lang.Object
net.minecraft.world.item.context.UseOnContext
Direct Known Subclasses:
BlockPlaceContext

public class UseOnContext extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getHitResult

      protected final BlockHitResult getHitResult()
    • getClickedPos

      public BlockPos getClickedPos()
    • getClickedFace

      public Direction getClickedFace()
    • getClickLocation

      public Vec3 getClickLocation()
    • isInside

      public boolean isInside()
    • getItemInHand

      public ItemStack getItemInHand()
    • getPlayer

      @Nullable public Player getPlayer()
    • getHand

      public InteractionHand getHand()
    • getLevel

      public Level getLevel()
    • getHorizontalDirection

      public Direction getHorizontalDirection()
    • isSecondaryUseActive

      public boolean isSecondaryUseActive()
    • getRotation

      public float getRotation()