Class BukkitWorld

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

public class BukkitWorld extends Object implements com.plotsquared.core.location.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
    • getPlatformWorld

      public World getPlatformWorld()
      Specified by:
      getPlatformWorld in interface com.plotsquared.core.location.World<World>
    • getName

      public @NonNull String getName()
      Specified by:
      getName in interface com.plotsquared.core.location.World<World>
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object