Class BukkitWorld

java.lang.Object
com.plotsquared.bukkit.util.BukkitWorld
All Implemented Interfaces:
World<World>

public class BukkitWorld extends Object implements World<World>
  • Method Details

    • of

      public static @NonNull BukkitWorld of(@NonNull String worldName)
      Get a new BukkitWorld from a world name
      Parameters:
      worldName - World name
      Returns:
      World instance
    • of

      public static @NonNull BukkitWorld of(World world)
      Get a new BukkitWorld from a Bukkit world
      Parameters:
      world - Bukkit world
      Returns:
      World instance
    • getMinWorldHeight

      public static int getMinWorldHeight(World world)
      Get the min world height from a Bukkit World. Inclusive
      Since:
      6.6.0
    • getMaxWorldHeight

      public static int getMaxWorldHeight(World world)
      Get the max world height from a Bukkit World. Exclusive
      Since:
      6.6.0
    • getPlatformWorld

      public World getPlatformWorld()
      Specified by:
      getPlatformWorld in interface World<World>
    • getName

      public @NonNull String getName()
      Specified by:
      getName in interface World<World>
    • getMinHeight

      public int getMinHeight()
      Specified by:
      getMinHeight in interface World<World>
    • getMaxHeight

      public int getMaxHeight()
      Specified by:
      getMaxHeight in interface World<World>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • canEqual

      @Deprecated(forRemoval=true, since="6.6.0") protected boolean canEqual(Object other)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is not meant to be invoked or overridden, with no replacement.
    • toString

      public String toString()
      Overrides:
      toString in class Object