Interface MapStorage


  • public interface MapStorage
    Represents the storage manager for the maps of the Server This allows you to get MapInfos and create them.
    • Method Detail

      • mapInfo

        Optional<MapInfo> mapInfo​(UUID uuid)
        Gets a MapInfo by its UUID.
        Parameters:
        uuid - UUID of map to get
        Returns:
        The map with given uuid, or empty if it doesn't exist.
      • createNewMapInfo

        Optional<MapInfo> createNewMapInfo()
        Creates a new MapInfo.

        The MapInfo will not be successfully created if the fired CreateMapEvent is cancelled. This can happen due to either a plugin cancelling it, or running out of room for maps. (Max amount of maps is 2147483647)

        Returns:
        MapInfo the new MapInfo if available