Class TargetEntityInfo

java.lang.Object
com.destroystokyo.paper.entity.TargetEntityInfo

@Deprecated(forRemoval=true, since="1.19.3") public class TargetEntityInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Represents information about a targeted entity.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TargetEntityInfo(Entity entity, Vector hitVec)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the entity that is targeted.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the position the entity is targeted at.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TargetEntityInfo

      public TargetEntityInfo(Entity entity, Vector hitVec)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getEntity

      public Entity getEntity()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the entity that is targeted.
      Returns:
      Targeted entity
    • getHitVector

      public Vector getHitVector()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the position the entity is targeted at.
      Returns:
      Targeted position