Class CordMinecraftAdapter

java.lang.Object
com.marcpg.libpg.storing.CordMinecraftAdapter

public final class CordMinecraftAdapter extends Object
Adapter for converting Cord to and from Minecraft Location objects.
  • 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 the Cord to a org.bukkit.Location.
      Parameters:
      world - The world of the converted Location.
      Returns:
      The converted Location.
    • ofLocation

      @NotNull public static @NotNull Cord ofLocation(@NotNull @NotNull org.bukkit.Location location)
      Converts the org.bukkit.Location to a simple Cord.
      Parameters:
      location - The Location to convert.
      Returns:
      The converted Cord.