Class BukkitAdapter

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

Helper methods for bridging the Bukkit API with squaremap API.
  • Method Details

    • worldIdentifier

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

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

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

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