Class BukkitAdapter

java.lang.Object
xyz.jpenilla.squaremap.api.BukkitAdapter

@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class) public final class BukkitAdapter extends Object
Helper methods for bridging the Bukkit API with squaremap API.
  • Method Details

    • worldIdentifier

      public static WorldIdentifier worldIdentifier(org.bukkit.World world)
      Gets the WorldIdentifier for a Bukkit World.
      Parameters:
      world - Bukkit world
      Returns:
      world identifier
    • namespacedKey

      public static org.bukkit.NamespacedKey namespacedKey(WorldIdentifier worldIdentifier)
      Convert the given WorldIdentifier to a Bukkit NamespacedKey.
      Parameters:
      worldIdentifier - world identifier
      Returns:
      namespaced key
    • bukkitWorld

      public static org.bukkit.World bukkitWorld(MapWorld world)
      Gets the Bukkit World for the given MapWorld.
      Parameters:
      world - world identifier
      Returns:
      bukkit world
    • point

      public static Point point(org.bukkit.Location location)
      Create a new point from a Bukkit Location. Uses block location.
      Parameters:
      location - location
      Returns:
      point