Class SimpleFabricLootTableProvider
java.lang.Object
net.fabricmc.fabric.api.datagen.v1.provider.SimpleFabricLootTableProvider
- All Implemented Interfaces:
FabricLootTableProvider
,DataProvider
,LootTableGenerator
public abstract class SimpleFabricLootTableProvider
extends Object
implements FabricLootTableProvider
Extend this class and implement
LootTableGenerator.accept(java.util.function.BiConsumer<net.minecraft.util.Identifier, net.minecraft.loot.LootTable.Builder>)
. Register an instance of the class with FabricDataGenerator.Pack.addProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator.Pack.Factory<T>)
in a DataGeneratorEntrypoint
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final LootContextType
protected final FabricDataOutput
Fields inherited from interface net.minecraft.data.DataProvider
JSON_KEY_SORT_ORDER, JSON_KEY_SORTING_COMPARATOR, LOGGER
-
Constructor Summary
ConstructorDescriptionSimpleFabricLootTableProvider
(FabricDataOutput output, LootContextType lootContextType) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.fabricmc.fabric.api.datagen.v1.provider.FabricLootTableProvider
withConditions
Methods inherited from interface net.minecraft.data.server.loottable.LootTableGenerator
accept
-
Field Details
-
output
-
lootContextType
-
-
Constructor Details
-
SimpleFabricLootTableProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
getName
- Specified by:
getName
in interfaceDataProvider
-