Interface EntityPosition

All Superinterfaces:
io.papermc.paper.math.FinePosition, io.papermc.paper.math.Position

@Experimental public sealed interface EntityPosition extends io.papermc.paper.math.FinePosition
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final EntityPosition
     

    Fields inherited from interface io.papermc.paper.math.Position

    BLOCK_ZERO, FINE_ZERO
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NonNull EntityPosition
    entity(double x, double y, double z)
     
    static @NonNull EntityPosition
    entity(double x, double y, double z, float yaw, float pitch)
     
    static @NonNull EntityPosition
    entity(io.papermc.paper.math.Position position)
     
    static @NonNull EntityPosition
    entity(io.papermc.paper.math.Position position, float yaw, float pitch)
     
    static @NonNull EntityPosition
    entity(org.bukkit.Location location)
     
    default @NonNull EntityPosition
    offset(double x, double y, double z)
     
    default @NonNull EntityPosition
    offset(int x, int y, int z)
     
    float
     
    default @NonNull EntityPosition
    rotate(float yaw, float pitch)
     
    default @NonNull EntityPosition
     
    default @NonNull org.bukkit.Location
    toLocation(@NonNull org.bukkit.World world)
     
    float
    yaw()
     

    Methods inherited from interface io.papermc.paper.math.FinePosition

    blockX, blockY, blockZ, isBlock, isFine, toBlock

    Methods inherited from interface io.papermc.paper.math.Position

    isFinite, toVector, x, y, z
  • Field Details

  • Method Details

    • yaw

      float yaw()
    • pitch

      float pitch()
    • rotate

      default @NonNull EntityPosition rotate(float yaw, float pitch)
    • offset

      default @NonNull EntityPosition offset(int x, int y, int z)
      Specified by:
      offset in interface io.papermc.paper.math.FinePosition
      Specified by:
      offset in interface io.papermc.paper.math.Position
    • offset

      default @NonNull EntityPosition offset(double x, double y, double z)
      Specified by:
      offset in interface io.papermc.paper.math.FinePosition
      Specified by:
      offset in interface io.papermc.paper.math.Position
    • toCenter

      default @NonNull EntityPosition toCenter()
      Specified by:
      toCenter in interface io.papermc.paper.math.Position
    • toLocation

      default @NonNull org.bukkit.Location toLocation(@NonNull org.bukkit.World world)
      Specified by:
      toLocation in interface io.papermc.paper.math.Position
    • entity

      static @NonNull EntityPosition entity(org.bukkit.Location location)
    • entity

      static @NonNull EntityPosition entity(io.papermc.paper.math.Position position)
    • entity

      static @NonNull EntityPosition entity(io.papermc.paper.math.Position position, float yaw, float pitch)
    • entity

      static @NonNull EntityPosition entity(double x, double y, double z)
    • entity

      static @NonNull EntityPosition entity(double x, double y, double z, float yaw, float pitch)