Class EntityHitResult

java.lang.Object
net.minecraft.util.hit.HitResult
net.minecraft.util.hit.EntityHitResult

public class EntityHitResult extends HitResult
Mappings:
Namespace Name
official dwn
intermediary net/minecraft/class_3966
named net/minecraft/util/hit/EntityHitResult
  • Field Details

    • entity

      private final Entity entity
      Mappings:
      Namespace Name Mixin selector
      official b Ldwn;b:Lbbn;
      intermediary field_17592 Lnet/minecraft/class_3966;field_17592:Lnet/minecraft/class_1297;
      named entity Lnet/minecraft/util/hit/EntityHitResult;entity:Lnet/minecraft/entity/Entity;
  • Constructor Details

    • EntityHitResult

      public EntityHitResult(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwn;<init>(Lbbn;)V
      intermediary <init> Lnet/minecraft/class_3966;<init>(Lnet/minecraft/class_1297;)V
      named <init> Lnet/minecraft/util/hit/EntityHitResult;<init>(Lnet/minecraft/entity/Entity;)V
    • EntityHitResult

      public EntityHitResult(Entity entity, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwn;<init>(Lbbn;Ldwq;)V
      intermediary <init> Lnet/minecraft/class_3966;<init>(Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
      named <init> Lnet/minecraft/util/hit/EntityHitResult;<init>(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
  • Method Details

    • getEntity

      public Entity getEntity()
      Mappings:
      Namespace Name Mixin selector
      official a Ldwn;a()Lbbn;
      intermediary method_17782 Lnet/minecraft/class_3966;method_17782()Lnet/minecraft/class_1297;
      named getEntity Lnet/minecraft/util/hit/EntityHitResult;getEntity()Lnet/minecraft/entity/Entity;
    • getType

      public HitResult.Type getType()
      Specified by:
      getType in class HitResult
      Mappings:
      Namespace Name Mixin selector
      official c Ldwo;c()Ldwo$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;