Package com.marcpg.libpg.storing
Class CordMinecraftAdapter
java.lang.Object
com.marcpg.libpg.storing.CordMinecraftAdapter
Adapter for converting
Cord
to and from Minecraft Location
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Cord
ofLocation
(@NotNull org.bukkit.Location location) Converts theorg.bukkit.Location
to a simpleCord
.@NotNull org.bukkit.Location
toLocation
(@NotNull Cord cord, @NotNull org.bukkit.World world) Converts theCord
to aorg.bukkit.Location
.
-
Constructor Details
-
CordMinecraftAdapter
public CordMinecraftAdapter()
-
-
Method Details
-
toLocation
@NotNull public @NotNull org.bukkit.Location toLocation(@NotNull @NotNull Cord cord, @NotNull @NotNull org.bukkit.World world) Converts theCord
to aorg.bukkit.Location
.- Parameters:
world
- The world of the converted Location.- Returns:
- The converted Location.
-
ofLocation
Converts theorg.bukkit.Location
to a simpleCord
.- Parameters:
location
- The Location to convert.- Returns:
- The converted Cord.
-