Class HitResult

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

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

    • pos

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

    • HitResult

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

    • squaredDistanceTo

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

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

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