Package dev.booky.cloudcore.util
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
FieldsFields inherited from interface io.papermc.paper.math.Position
BLOCK_ZERO, FINE_ZERO -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull EntityPositionentity(double x, double y, double z) static @NonNull EntityPositionentity(double x, double y, double z, float yaw, float pitch) static @NonNull EntityPositionentity(io.papermc.paper.math.Position position) static @NonNull EntityPositionentity(io.papermc.paper.math.Position position, float yaw, float pitch) static @NonNull EntityPositionentity(org.bukkit.Location location) default @NonNull EntityPositionoffset(double x, double y, double z) default @NonNull EntityPositionoffset(int x, int y, int z) floatpitch()default @NonNull EntityPositionrotate(float yaw, float pitch) default @NonNull EntityPositiontoCenter()default @NonNull org.bukkit.LocationtoLocation(@NonNull org.bukkit.World world) floatyaw()Methods inherited from interface io.papermc.paper.math.FinePosition
blockX, blockY, blockZ, isBlock, isFine, toBlockMethods inherited from interface io.papermc.paper.math.Position
isFinite, toVector, x, y, z
-
Field Details
-
ENTITY_ZERO
-
-
Method Details
-
yaw
float yaw() -
pitch
float pitch() -
rotate
-
offset
- Specified by:
offsetin interfaceio.papermc.paper.math.FinePosition- Specified by:
offsetin interfaceio.papermc.paper.math.Position
-
offset
- Specified by:
offsetin interfaceio.papermc.paper.math.FinePosition- Specified by:
offsetin interfaceio.papermc.paper.math.Position
-
toCenter
- Specified by:
toCenterin interfaceio.papermc.paper.math.Position
-
toLocation
default @NonNull org.bukkit.Location toLocation(@NonNull org.bukkit.World world) - Specified by:
toLocationin interfaceio.papermc.paper.math.Position
-
entity
-
entity
-
entity
static @NonNull EntityPosition entity(io.papermc.paper.math.Position position, float yaw, float pitch) -
entity
-
entity
-