This commit is contained in:
Telesphoreo
2018-07-24 19:44:00 -07:00
committed by Seth
parent 0d503a6c06
commit 7278176143
24 changed files with 184 additions and 53 deletions

View File

@ -56,7 +56,7 @@ public final class AdminWorld extends CustomWorld
@Override
protected World generateWorld()
{
final WorldCreator worldCreator = new WorldCreator(getName());
final WorldCreator worldCreator = new WorldCreator(WORLD_NAME);
worldCreator.generateStructures(false);
worldCreator.type(WorldType.NORMAL);
worldCreator.environment(World.Environment.NORMAL);

View File

@ -23,6 +23,7 @@ public class Flatlands extends CustomWorld
{
super("flatlands");
}
private static final String WORLD_NAME = "flatlands";
@Override
protected World generateWorld()
@ -89,4 +90,8 @@ public class Flatlands extends CustomWorld
}
}
public String getName()
{
return this.WORLD_NAME;
}
}

View File

@ -28,6 +28,7 @@ public final class MasterBuilderWorld extends CustomWorld
//
private WorldWeather weather = WorldWeather.OFF;
private WorldTime time = WorldTime.INHERIT;
private static final String WORLD_NAME = "masterbuilderworld";
public MasterBuilderWorld()
{
@ -43,7 +44,7 @@ public final class MasterBuilderWorld extends CustomWorld
@Override
protected World generateWorld()
{
final WorldCreator worldCreator = new WorldCreator(getName());
final WorldCreator worldCreator = new WorldCreator(WORLD_NAME);
worldCreator.generateStructures(false);
worldCreator.type(WorldType.NORMAL);
worldCreator.environment(World.Environment.NORMAL);