Package de.chojo.universalis.worlds
Interface World
- All Superinterfaces:
WorldProvider
Represents a world.
-
Method Summary
Methods inherited from interface de.chojo.universalis.worlds.WorldProvider
worlds
-
Method Details
-
of
Creates a new world based on a name and an id- Parameters:
name
- world nameid
- world iddataCenter
- datacenter of world- Returns:
- new world instance
-
name
String name()Name of the world.The name might be empty if the world was unknown.
- Returns:
- name
-
id
int id()ID of the world.This id might be -1 if the world was unknown
- Returns:
- id
-
dataCenter
DataCenter dataCenter()The data center of the world- Returns:
- data center
-