Update SpongeSchematic format to version 2.

Allows saving and loading entities and biomes.
This commit is contained in:
wizjany
2019-04-03 23:33:10 -04:00
committed by Matthew Miller
parent af1af43ac1
commit 17fba54305
10 changed files with 273 additions and 14 deletions

View File

@ -64,6 +64,12 @@ class ForgePlatform extends AbstractPlatform implements MultiUserPlatform {
return ForgeRegistries.getInstance();
}
@Override
public int getDataVersion() {
// TODO technically available as WorldInfo#field_209227_p but requires a world ref?
return 1631;
}
@Override
public boolean isValidMobType(String type) {
return net.minecraftforge.registries.ForgeRegistries.ENTITIES.containsKey(new ResourceLocation(type));