Interface EntityPosition

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

@NullMarked @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
    entity(double x, double y, double z)
     
    entity(double x, double y, double z, float yaw, float pitch)
     
    entity(io.papermc.paper.math.Position position)
     
    entity(io.papermc.paper.math.Position position, float yaw, float pitch)
     
    entity(org.bukkit.Location location)
     
    offset(double x, double y, double z)
     
    offset(int x, int y, int z)
     
    float
     
    rotate(float yaw, float pitch)
     
     
    default org.bukkit.Location
    toLocation(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 EntityPosition rotate(float yaw, float pitch)
    • offset

      default 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 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 EntityPosition toCenter()
      Specified by:
      toCenter in interface io.papermc.paper.math.Position
    • toLocation

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

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

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

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

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

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