Class HitResult

java.lang.Object
net.minecraft.world.phys.HitResult
Direct Known Subclasses:
BlockHitResult, EntityHitResult

public abstract class HitResult extends Object
  • Field Details

    • location

      protected final Vec3 location
  • Constructor Details

    • HitResult

      protected HitResult(Vec3 p_82447_)
  • Method Details

    • distanceTo

      public double distanceTo(Entity p_82449_)
    • getType

      public abstract HitResult.Type getType()
    • getLocation

      public Vec3 getLocation()