Interface World

All Superinterfaces:
WorldProvider

public interface World extends WorldProvider
Represents a world.
  • Method Summary

    Modifier and Type
    Method
    Description
    The data center of the world
    int
    id()
    ID of the world.
    Name of the world.
    static World
    of(String name, int id, DataCenter dataCenter)
    Creates a new world based on a name and an id

    Methods inherited from interface de.chojo.universalis.worlds.WorldProvider

    worlds
  • Method Details

    • of

      static World of(String name, int id, DataCenter dataCenter)
      Creates a new world based on a name and an id
      Parameters:
      name - world name
      id - world id
      dataCenter - 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