Standalones

This commit is contained in:
Daniel Mills 2020-08-03 13:56:51 -04:00
parent 79e2bdb587
commit 4304cad029

View File

@ -54,6 +54,17 @@ import org.bukkit.util.Vector;
@SuppressWarnings("deprecation")
public class StandaloneWorld implements World
{
private final long seed;
private final String name;
private final File folder;
public StandaloneWorld(String name, long seed, File folder)
{
this.seed = seed;
this.name = name;
this.folder = folder;
}
@Override
public Set<String> getListeningPluginChannels()
{
@ -484,8 +495,7 @@ public class StandaloneWorld implements World
@Override
public String getName()
{
throw new UnsupportedOperationException();
return name;
}
@Override
@ -568,8 +578,7 @@ public class StandaloneWorld implements World
@Override
public long getSeed()
{
throw new UnsupportedOperationException();
return seed;
}
@Override
@ -687,8 +696,7 @@ public class StandaloneWorld implements World
@Override
public File getWorldFolder()
{
throw new UnsupportedOperationException();
return folder;
}
@Override