implement TerraFabricPlugin#getWorld(long)

This commit is contained in:
dfsek
2021-04-15 09:59:13 -07:00
parent 5ac7257517
commit 5501f53056

View File

@@ -157,6 +157,12 @@ public class TerraFabricPlugin implements TerraPlugin, ModInitializer {
});
}
public TerraWorld getWorld(long seed) {
TerraWorld world = worldMap.get(seed);
if(world == null) throw new IllegalArgumentException("No world exists with seed " + seed);
return world;
}
@Override
public Logger logger() {
return logger;