Class Worlds
java.lang.Object
de.chojo.universalis.worlds.Worlds
Class containing the currently valid regions, datacenters and worlds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe 中国 regionstatic final classThe european regionstatic final classThe japanese regionstatic final classThe north american regionstatic final classThe oceanian region -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Worlds.Chinachina()The 中国 regionstatic @Nullable DataCenterdatacenterById(int id) Retrieves a data center by idstatic @Nullable DataCenterdatacenterByName(@Nullable String name) Retrieves a data center by namestatic Worlds.Europeeurope()The european regionstatic Worlds.Japanjapan()The japanese regionstatic Worlds.NorthAmericaThe north american regionstatic Worlds.Oceaniaoceania()The oceanian regionregionByName(@Nullable String name) Retrieves a region by nameregions()Returns all valid regionsstatic WorldTransforms a world entity to an internal richer world modelstatic WorldworldById(int id) Gets a world by its id.worldByName(@Nullable String name) Retrieve a world by its name
-
Constructor Details
-
Worlds
public Worlds()
-
-
Method Details
-
europe
-
northAmerica
The north american region- Returns:
- north american region
-
oceania
-
japan
-
china
-
regions
-
worldById
Gets a world by its id.- Parameters:
id- world id- Returns:
- world if valid or a dummy world with the matching ID
-
datacenterByName
-
datacenterById
Retrieves a data center by id- Parameters:
id- data center id- Returns:
- data center
-
regionByName
-
worldByName
-
toWorld
-