Class WorldManager

java.lang.Object
us.talabrek.ultimateskyblock.world.WorldManager

public class WorldManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.bukkit.World
     
    static org.bukkit.World
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WorldManager(@NotNull uSkyBlock plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getChunkRegenerator(@NotNull org.bukkit.World world)
    Get the ChunkRegenerator for the given World.
    @Nullable org.bukkit.generator.ChunkGenerator
    getDefaultWorldGenerator(@NotNull String worldName, @Nullable String id)
    Gets a ChunkGenerator for use in a default world, as specified in the server configuration
    @Nullable org.bukkit.World
    Gets the skyblock nether island World.
    @NotNull org.bukkit.World
    Gets the skyblock island World.
    boolean
    isSkyAssociatedWorld(@Nullable org.bukkit.World world)
    Checks if the given World is associated with Ultimate Skyblock.
    boolean
    isSkyNether(@Nullable org.bukkit.World world)
    Checks if the given World is the skyblock nether island world.
    boolean
    isSkyWorld(@Nullable org.bukkit.World world)
    Checks if the given World is the skyblock island world.
    void
    removeCreatures(@Nullable org.bukkit.Location target)
    Removes all unnamed Monster's at the given Location.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • skyBlockWorld

      public static volatile org.bukkit.World skyBlockWorld
    • skyBlockNetherWorld

      public static volatile org.bukkit.World skyBlockNetherWorld
  • Constructor Details

    • WorldManager

      public WorldManager(@NotNull @NotNull uSkyBlock plugin)
  • Method Details

    • getChunkRegenerator

      @NotNull public @NotNull ChunkRegenerator getChunkRegenerator(@NotNull @NotNull org.bukkit.World world)
      Get the ChunkRegenerator for the given World.
      Parameters:
      world - World to get the ChunkRegenerator for.
      Returns:
      ChunkRegenerator for the given world.
    • removeCreatures

      public void removeCreatures(@Nullable @Nullable org.bukkit.Location target)
      Removes all unnamed Monster's at the given Location.
      Parameters:
      target - Location to remove unnamed monsters.
    • getDefaultWorldGenerator

      @Nullable public @Nullable org.bukkit.generator.ChunkGenerator getDefaultWorldGenerator(@NotNull @NotNull String worldName, @Nullable @Nullable String id)
      Gets a ChunkGenerator for use in a default world, as specified in the server configuration
      Parameters:
      worldName - Name of the world that this will be applied to
      id - Unique ID, if any, that was specified to indicate which generator was requested
      Returns:
      ChunkGenerator for use in the default world generation
    • getWorld

      @NotNull public @NotNull org.bukkit.World getWorld()
      Gets the skyblock island World. Creates and/or imports the world if necessary.
      Returns:
      Skyblock island world.
    • getNetherWorld

      @Nullable public @Nullable org.bukkit.World getNetherWorld()
      Gets the skyblock nether island World. Creates and/or imports the world if necessary. Returns null if the nether is not enabled in the plugin configuration.
      Returns:
      Skyblock nether island world, or null if nether is disabled.
    • isSkyWorld

      public boolean isSkyWorld(@Nullable @Nullable org.bukkit.World world)
      Checks if the given World is the skyblock island world.
      Parameters:
      world - World to check.
      Returns:
      True if the given world is the skyblock island world, false otherwise.
    • isSkyNether

      public boolean isSkyNether(@Nullable @Nullable org.bukkit.World world)
      Checks if the given World is the skyblock nether island world.
      Parameters:
      world - World to check.
      Returns:
      True if the given world is the skyblock nether island world, false otherwise.
    • isSkyAssociatedWorld

      public boolean isSkyAssociatedWorld(@Nullable @Nullable org.bukkit.World world)
      Checks if the given World is associated with Ultimate Skyblock.
      Parameters:
      world - World to check.
      Returns:
      True if the given world is associated with the plugin, false otherwise.