use of org.spongepowered.common.data.persistence.NbtDataFormat in project SpongeCommon by SpongePowered.
the class DataFormatRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
this.dataFormatMappings.put("nbt", new NbtDataFormat("nbt"));
this.dataFormatMappings.put("json", new JsonDataFormat());
this.dataFormatMappings.put("hocon", new HoconDataFormat("hocon"));
}
use of org.spongepowered.common.data.persistence.NbtDataFormat in project SpongeCommon by SpongePowered.
the class SpongeRegistryLoaders method dataFormat.
public static RegistryLoader<DataFormat> dataFormat() {
return RegistryLoader.of(l -> {
l.add(DataFormats.JSON, k -> new JsonDataFormat());
l.add(DataFormats.HOCON, k -> new HoconDataFormat());
l.add(DataFormats.NBT, k -> new NBTDataFormat());
});
}
Aggregations