Class ItemUseContext

java.lang.Object
net.minecraft.item.ItemUseContext
Direct Known Subclasses:
BlockItemUseContext

public class ItemUseContext extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getHitResult

      protected final BlockRayTraceResult getHitResult()
    • getClickedPos

      public BlockPos getClickedPos()
    • getClickedFace

      public Direction getClickedFace()
    • getClickLocation

      public Vector3d getClickLocation()
    • isInside

      public boolean isInside()
    • getItemInHand

      public ItemStack getItemInHand()
    • getPlayer

      @Nullable public PlayerEntity getPlayer()
    • getHand

      public Hand getHand()
    • getLevel

      public World getLevel()
    • getHorizontalDirection

      public Direction getHorizontalDirection()
    • isSecondaryUseActive

      public boolean isSecondaryUseActive()
    • getRotation

      public float getRotation()