Class SimpleFabricLootTableProvider
java.lang.Object
net.fabricmc.fabric.api.datagen.v1.provider.SimpleFabricLootTableProvider
- All Implemented Interfaces:
Consumer<BiConsumer<Identifier,
,LootTable.Builder>> FabricLootTableProvider
,DataProvider
public abstract class SimpleFabricLootTableProvider
extends Object
implements FabricLootTableProvider
Extend this class and implement
Consumer.accept(T)
. Register an instance of the class with FabricDataGenerator.addProvider(java.util.function.Function<net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator, P>)
in a DataGeneratorEntrypoint
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FabricDataGenerator
protected final LootContextType
Fields inherited from interface net.minecraft.data.DataProvider
JSON_KEY_SORT_ORDER, JSON_KEY_SORTING_COMPARATOR
-
Constructor Summary
ConstructorDescriptionSimpleFabricLootTableProvider
(FabricDataGenerator dataGenerator, 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
run, withConditions
-
Field Details
-
dataGenerator
-
lootContextType
-
-
Constructor Details
-
SimpleFabricLootTableProvider
public SimpleFabricLootTableProvider(FabricDataGenerator dataGenerator, LootContextType lootContextType)
-
-
Method Details
-
getLootContextType
- Specified by:
getLootContextType
in interfaceFabricLootTableProvider
-
getFabricDataGenerator
- Specified by:
getFabricDataGenerator
in interfaceFabricLootTableProvider
-
getName
- Specified by:
getName
in interfaceDataProvider
-