Interface World<T>

Type Parameters:
T - Platform world type
All Superinterfaces:
net.kyori.adventure.key.Keyed
All Known Implementing Classes:
World.NullWorld

public interface World<T> extends net.kyori.adventure.key.Keyed
PlotSquared representation of a platform world
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the max world height.
    int
    Get the min world height.
    Get the name of the world
    Get the platform world represented by this world
    Get the path to this worlds' folder (for legacy versions the folder containing the level.dat file, for newer versions the namespaced dimension folder).
    static <T> World.NullWorld<T>
    Get a World.NullWorld implementation

    Methods inherited from interface net.kyori.adventure.key.Keyed

    key
  • Method Details

    • nullWorld

      static <T> World.NullWorld<T> nullWorld()
      Get a World.NullWorld implementation
      Type Parameters:
      T - implementation-specific world object type e.g. a bukkit World
      Returns:
      NullWorld instance
    • getPlatformWorld

      Get the platform world represented by this world
      Returns:
      Platform world
    • getName

      Get the name of the world
      Returns:
      World name
    • getMinHeight

      Get the min world height. Inclusive.
      Since:
      6.6.0
    • getMaxHeight

      Get the max world height. Inclusive.
      Since:
      6.6.0
    • getWorldFolder

      Get the path to this worlds' folder (for legacy versions the folder containing the level.dat file, for newer versions the namespaced dimension folder).
      Returns:
      the path
      Since:
      7.6.0