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

@ -68,6 +68,12 @@ class SpongePlatform extends AbstractPlatform implements MultiUserPlatform {
return SpongeRegistries.getInstance();
}
@Override
public int getDataVersion() {
// TODO add to adapter - org.spongepowered.common.data.util.DataUtil#MINECRAFT_DATA_VERSION
return 1631;
}
@Override
public boolean isValidMobType(String type) {
return Sponge.getRegistry().getType(EntityType.class, type).isPresent();