public abstract class CommonLootTablesProvider extends CommonProvider
Constructor and Description |
---|
CommonLootTablesProvider(GenerationData data) |
Modifier and Type | Method and Description |
---|---|
void |
act(net.minecraft.data.DirectoryCache cache) |
protected static net.minecraft.world.storage.loot.LootTable |
addBasicBlockLootTable(net.minecraft.util.IItemProvider item) |
protected static net.minecraft.world.storage.loot.LootTable |
addFortuneBlockLootTable(net.minecraft.block.Block block,
net.minecraft.util.IItemProvider item) |
java.lang.String |
getName() |
protected static void |
registerBlock(net.minecraft.block.Block block,
net.minecraft.world.storage.loot.LootTable lootTable,
java.util.function.BiConsumer<net.minecraft.util.ResourceLocation,net.minecraft.world.storage.loot.LootTable> consumer) |
protected abstract void |
registerLootTables(java.util.function.BiConsumer<net.minecraft.util.ResourceLocation,net.minecraft.world.storage.loot.LootTable> consumer) |
mcLoc, modLoc, resolveAssets, resolveData, resolveModAssets, resolveModData, write, write, write
public CommonLootTablesProvider(GenerationData data)
public void act(net.minecraft.data.DirectoryCache cache) throws java.io.IOException
java.io.IOException
protected abstract void registerLootTables(java.util.function.BiConsumer<net.minecraft.util.ResourceLocation,net.minecraft.world.storage.loot.LootTable> consumer)
public java.lang.String getName()
protected static void registerBlock(net.minecraft.block.Block block, net.minecraft.world.storage.loot.LootTable lootTable, java.util.function.BiConsumer<net.minecraft.util.ResourceLocation,net.minecraft.world.storage.loot.LootTable> consumer)
protected static net.minecraft.world.storage.loot.LootTable addBasicBlockLootTable(net.minecraft.util.IItemProvider item)
protected static net.minecraft.world.storage.loot.LootTable addFortuneBlockLootTable(net.minecraft.block.Block block, net.minecraft.util.IItemProvider item)