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(@NotNull Entity entity, @NotNull Vector hitVec)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Entity
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the entity that is targeted
    @NotNull Vector
    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 java.lang.Object

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

    • TargetEntityInfo

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

    • getEntity

      @NotNull public @NotNull 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

      @NotNull public @NotNull 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