public class SeasonalSurvivalManager
extends java.lang.Object
SeasonalSurvivalUtils
Modifier and Type | Field and Description |
---|---|
private static WauzStarter |
core
A direct reference to the main class.
|
private boolean |
createSpawn
If a spawn circle should be created automatically.
|
private java.lang.String |
currentSeason
The current survival season.
|
private java.io.File |
seasonFile
The season file of the survival world.
|
private org.bukkit.WorldCreator |
worldCreator
The creator for the survival world.
|
private java.lang.String |
worldName
The name of the survival world.
|
Constructor and Description |
---|
SeasonalSurvivalManager(org.bukkit.WorldCreator worldCreator,
boolean createSpawn)
Creates a seasonal survival manager for the given world.
|
Modifier and Type | Method and Description |
---|---|
void |
generateSurvivalWorld()
Loads the current Survival world or starts a new one,
if it is outdated or has no Season.yml file.
|
private java.lang.String |
getSurvivalSeason() |
private java.io.File |
getSurvivalSeasonFile() |
private void |
updateSurvivalWorld()
Tries to set up all properties of the current Survival world, if needed.
|
private static WauzStarter core
private org.bukkit.WorldCreator worldCreator
private boolean createSpawn
private java.lang.String worldName
private java.lang.String currentSeason
private java.io.File seasonFile
public SeasonalSurvivalManager(org.bukkit.WorldCreator worldCreator, boolean createSpawn)
worldCreator
- The creator for the survival world.createSpawn
- If a spawn circle should be created automatically.public void generateSurvivalWorld()
private void updateSurvivalWorld()
private java.lang.String getSurvivalSeason()
private java.io.File getSurvivalSeasonFile()