src/main/java/com/github/klikli_dev/occultism/datagen/BaseLootTableProvider.java
// Actually write out the tables in the output folder
Actually write out the tables in the output folder
Actually write out the tables in the output folder
private void writeTables(DirectoryCache cache, Map<ResourceLocation, LootTable> tables) {
        Path outputFolder = this.generator.getOutputFolder();
        tables.forEach((key, lootTable) -> {
            Path path = outputFolder.resolve("data/" + key.getNamespace() + "/loot_tables/" + key.getPath() + ".json");
            try {
                IDataProvider.save(GSON, cache, LootTableManager.serialize(lootTable), path);
            } catch (IOException e) {
                Occultism.LOGGER.error("Couldn't write loot table {}", path, e);
            }
        });
    }
private void writeTables ( DirectoryCache cache , Map < ResourceLocation , LootTable > tables ) { Path outputFolder = this . generator . getOutputFolder ( ) ; tables . forEach ( ( key , lootTable ) -> { Path path = outputFolder . resolve ( "data/" + key . getNamespace ( ) + "/loot_tables/" + key . getPath ( ) + ".json" ) ; try { IDataProvider . save ( GSON , cache , LootTableManager . serialize ( lootTable ) , path ) ; } catch ( IOException e ) { Occultism . LOGGER . error ( "Couldn't write loot table {}" , path , e ) ; } } ) ; }
Actually write out the tables in the output folder
Actually write out the tables in the output folder