Package net.fateuhc.plugin.api.managers
Class WorldsManager
java.lang.Object
net.fateuhc.plugin.api.managers.WorldsManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongReturns the world seed if set.voidStarts the biomes swap if TerrainControl is not installed.voidSaves the mapUsed value to the uhcconfigurations.yml file under UHC-WORLD-USED.booleanReturns whether the chunks are loaded.booleanReturns whether the world is currently loading.booleanReturns whether the map is used.booleanReturns whether the world is restarting to generate.booleanReturns whether the world seed setting is enabled.voidStarts the loading process for UHC worlds.voidStops the loading of UHC worlds.
-
Constructor Details
-
WorldsManager
public WorldsManager()
-
-
Method Details
-
stopLoading
public void stopLoading()Stops the loading of UHC worlds. -
startLoading
public void startLoading()Starts the loading process for UHC worlds. -
handleConfigSave
public void handleConfigSave()Saves the mapUsed value to the uhcconfigurations.yml file under UHC-WORLD-USED. -
isMapUsed
public boolean isMapUsed()Returns whether the map is used.- Returns:
- true if the map is used, false otherwise.
-
isLoading
public boolean isLoading()Returns whether the world is currently loading.- Returns:
- true if the world is currently loading, false otherwise.
-
isRestartingToGenerate
public boolean isRestartingToGenerate()Returns whether the world is restarting to generate.- Returns:
- true if the world is restarting to generate, false otherwise.
-
isSeedGenerated
public boolean isSeedGenerated()Returns whether the world seed setting is enabled.- Returns:
- true if the world seed setting is enabled, false otherwise.
-
isChunksLoaded
public boolean isChunksLoaded()Returns whether the chunks are loaded.- Returns:
- true if the chunks are loaded, false otherwise.
-
getWorldSeed
public long getWorldSeed()Returns the world seed if set.- Returns:
- the world seed.
-
areUHCWorldsValid
public boolean areUHCWorldsValid()- Returns:
- True/False depending on status of UHC worlds
-
handleBiomesSwap
public void handleBiomesSwap()Starts the biomes swap if TerrainControl is not installed.
-