Class Towns

All Implemented Interfaces:
ILocatable<SquaremapTown>

public class Towns extends BaseCache<SquaremapTown> implements ILocatable<SquaremapTown>
  • Constructor Details

  • Method Details

    • fetchCacheData

      protected Map<String,SquaremapTown> fetchCacheData()
      Specified by:
      fetchCacheData in class BaseCache<SquaremapTown>
    • invitableFromNation

      public Map<String,SquaremapTown> invitableFromNation(SquaremapNation nation)
      Gets all towns that the specified nation can invite by measuring their distances. Includes all towns within 3500 blocks on Aurora or 3000 blocks on other maps.
      Parameters:
      nation - The nation we want to gather all invitable towns for.
      Returns:
      A new Map containing the in-range (invitable) towns where the key is the town name.