Class WorldManager
java.lang.Object
us.talabrek.ultimateskyblock.world.WorldManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.bukkit.World
static org.bukkit.World
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ChunkRegenerator
getChunkRegenerator
(@NotNull org.bukkit.World world) Get theChunkRegenerator
for the givenWorld
.@Nullable org.bukkit.generator.ChunkGenerator
getDefaultWorldGenerator
(@NotNull String worldName, @Nullable String id) Gets aChunkGenerator
for use in a default world, as specified in the server configuration@Nullable org.bukkit.World
Gets the skyblock nether islandWorld
.@NotNull org.bukkit.World
getWorld()
Gets the skyblock islandWorld
.boolean
isSkyAssociatedWorld
(@Nullable org.bukkit.World world) Checks if the givenWorld
is associated with Ultimate Skyblock.boolean
isSkyNether
(@Nullable org.bukkit.World world) Checks if the givenWorld
is the skyblock nether island world.boolean
isSkyWorld
(@Nullable org.bukkit.World world) Checks if the givenWorld
is the skyblock island world.void
removeCreatures
(@Nullable org.bukkit.Location target) Removes all unnamedMonster
's at the givenLocation
.
-
Field Details
-
skyBlockWorld
public static volatile org.bukkit.World skyBlockWorld -
skyBlockNetherWorld
public static volatile org.bukkit.World skyBlockNetherWorld
-
-
Constructor Details
-
WorldManager
-
-
Method Details
-
getChunkRegenerator
@NotNull public @NotNull ChunkRegenerator getChunkRegenerator(@NotNull @NotNull org.bukkit.World world) Get theChunkRegenerator
for the givenWorld
.- 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 unnamedMonster
's at the givenLocation
.- 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 aChunkGenerator
for use in a default world, as specified in the server configuration- Parameters:
worldName
- Name of the world that this will be applied toid
- 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 islandWorld
. Creates and/or imports the world if necessary.- Returns:
- Skyblock island world.
-
getNetherWorld
@Nullable public @Nullable org.bukkit.World getNetherWorld()Gets the skyblock nether islandWorld
. 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 givenWorld
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 givenWorld
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 givenWorld
is associated with Ultimate Skyblock.- Parameters:
world
- World to check.- Returns:
- True if the given world is associated with the plugin, false otherwise.
-