mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fake world improvements
This commit is contained in:
parent
a48400535f
commit
0527066a4c
@ -29,17 +29,20 @@ import java.util.function.Predicate;
|
|||||||
public class FakeWorld implements World
|
public class FakeWorld implements World
|
||||||
{
|
{
|
||||||
private final int height;
|
private final int height;
|
||||||
|
private final int minHeight;
|
||||||
private final long seed;
|
private final long seed;
|
||||||
private final File worldFolder;
|
private final File worldFolder;
|
||||||
private final Environment environment;
|
private final Environment environment;
|
||||||
@Setter
|
@Setter
|
||||||
private String worldName;
|
private String worldName;
|
||||||
|
|
||||||
public FakeWorld(int height, long seed, File worldFolder, Environment environment)
|
public FakeWorld(String name, int minHeight, int height, long seed, File worldFolder, Environment environment)
|
||||||
{
|
{
|
||||||
|
this.worldName = name;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.seed = seed;
|
this.seed = seed;
|
||||||
this.worldFolder = worldFolder;
|
this.worldFolder = worldFolder;
|
||||||
|
this.minHeight = minHeight;
|
||||||
this.environment = environment;
|
this.environment = environment;
|
||||||
worldFolder.mkdirs();
|
worldFolder.mkdirs();
|
||||||
}
|
}
|
||||||
@ -898,7 +901,7 @@ public class FakeWorld implements World
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override public int getMinHeight() {
|
@Override public int getMinHeight() {
|
||||||
return 0;
|
return minHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user