use of net.minecraft.loot.LootParameterSet in project VariousOddities by Lyinginbedmon.
the class VOLootProvider method addLootTable.
private void addLootTable(String location, LootTable.Builder lootTable, LootParameterSet lootParameterSet) {
if (location.startsWith("inject/")) {
String actualLocation = location.replace("inject/", "");
Preconditions.checkArgument(existingFileHelper.exists(new ResourceLocation("loot_tables/" + actualLocation + ".json"), ResourcePackType.SERVER_DATA), "Loot table %s does not exist in any known data pack", actualLocation);
}
tables.add(Pair.of(() -> lootBuilder -> lootBuilder.accept(new ResourceLocation(Reference.ModInfo.MOD_ID, location), lootTable), lootParameterSet));
}
Aggregations