Interface World<T>

Type Parameters:
T - Platform world type
All Known Implementing Classes:
World.NullWorld

public interface World<T>
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
    @NonNull String
    Get the name of the world
    @NonNull T
    Get the platform world represented by this world
    static <T> World.NullWorld<T>
    Get a World.NullWorld implementation
  • 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

      @NonNull T getPlatformWorld()
      Get the platform world represented by this world
      Returns:
      Platform world
    • getName

      @NonNull String getName()
      Get the name of the world
      Returns:
      World name