Class DefaultRecipeLootProvider
java.lang.Object
com.minecolonies.core.generation.defaults.workers.DefaultRecipeLootProvider
- All Implemented Interfaces:
net.minecraft.data.loot.LootTableSubProvider
public class DefaultRecipeLootProvider
extends Object
implements net.minecraft.data.loot.LootTableSubProvider
Datagen for generic recipe loot. (This could be done in the individual crafter gens, but they're potentially
useful across multiple, and there's not very many of them.)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRecipeLootProvider(net.minecraft.core.HolderLookup.Provider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable.Builder> generator)
-
Field Details
-
LOOT_TABLE_GLASS_BOTTLE
public static final net.minecraft.resources.ResourceLocation LOOT_TABLE_GLASS_BOTTLE -
LOOT_TABLE_LARGE_BOTTLE
public static final net.minecraft.resources.ResourceLocation LOOT_TABLE_LARGE_BOTTLE -
LOOT_TABLE_GRAVEL
public static final net.minecraft.resources.ResourceLocation LOOT_TABLE_GRAVEL
-
-
Constructor Details
-
DefaultRecipeLootProvider
public DefaultRecipeLootProvider(@NotNull net.minecraft.core.HolderLookup.Provider provider)
-
-
Method Details
-
generate
public void generate(BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.world.level.storage.loot.LootTable>, net.minecraft.world.level.storage.loot.LootTable.Builder> generator) - Specified by:
generatein interfacenet.minecraft.data.loot.LootTableSubProvider
-