Class HitResult

java.lang.Object
net.minecraft.util.hit.HitResult
Direct Known Subclasses:
BlockHitResult, EntityHitResult

public abstract class HitResult extends Object
Mappings:
Namespace Name
named net/minecraft/util/hit/HitResult
intermediary net/minecraft/class_239
official exa
  • Field Details

    • pos

      protected final Vec3d pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/util/hit/HitResult;pos:Lnet/minecraft/util/math/Vec3d;
      intermediary field_1329 Lnet/minecraft/class_239;field_1329:Lnet/minecraft/class_243;
      official a Lexa;a:Lexc;
  • Constructor Details

    • HitResult

      protected HitResult(Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/hit/HitResult;<init>(Lnet/minecraft/util/math/Vec3d;)V
      intermediary <init> Lnet/minecraft/class_239;<init>(Lnet/minecraft/class_243;)V
      official <init> Lexa;<init>(Lexc;)V
  • Method Details

    • squaredDistanceTo

      public double squaredDistanceTo(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named squaredDistanceTo Lnet/minecraft/util/hit/HitResult;squaredDistanceTo(Lnet/minecraft/entity/Entity;)D
      intermediary method_24801 Lnet/minecraft/class_239;method_24801(Lnet/minecraft/class_1297;)D
      official a Lexa;a(Lbsr;)D
    • getType

      public abstract HitResult.Type getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/util/hit/HitResult;getType()Lnet/minecraft/util/hit/HitResult$Type;
      intermediary method_17783 Lnet/minecraft/class_239;method_17783()Lnet/minecraft/class_239$class_240;
      official c Lexa;c()Lexa$a;
    • getPos

      public Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/util/hit/HitResult;getPos()Lnet/minecraft/util/math/Vec3d;
      intermediary method_17784 Lnet/minecraft/class_239;method_17784()Lnet/minecraft/class_243;
      official e Lexa;e()Lexc;