Class DefaultRecipeLootProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
com.minecolonies.core.generation.SimpleLootTableProvider
com.minecolonies.core.generation.defaults.workers.DefaultRecipeLootProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
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.)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.minecolonies.core.generation.SimpleLootTableProvider
SimpleLootTableProvider.LootTableRegistrarNested classes/interfaces inherited from class net.minecraft.data.loot.LootTableProvider
net.minecraft.data.loot.LootTableProvider.SubProviderEntryNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRecipeLootProvider(@NotNull net.minecraft.data.PackOutput packOutput) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()protected voidregisterTables(@NotNull SimpleLootTableProvider.LootTableRegistrar registrar) Methods inherited from class com.minecolonies.core.generation.SimpleLootTableProvider
getTables, itemStack, validateMethods inherited from class net.minecraft.data.loot.LootTableProvider
run
-
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 @NotNull net.minecraft.data.PackOutput packOutput)
-
-
Method Details
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider- Overrides:
getNamein classnet.minecraft.data.loot.LootTableProvider
-
registerTables
protected void registerTables(@NotNull @NotNull SimpleLootTableProvider.LootTableRegistrar registrar) - Specified by:
registerTablesin classSimpleLootTableProvider
-