Class SimpleFabricLootTableProvider
java.lang.Object
net.fabricmc.fabric.api.datagen.v1.provider.SimpleFabricLootTableProvider
- All Implemented Interfaces:
Consumer<BiConsumer<net.minecraft.util.Identifier,
,net.minecraft.loot.LootTable.Builder>> FabricLootTableProvider
,net.minecraft.data.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 net.minecraft.loot.context.LootContextType
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
Fields inherited from interface net.fabricmc.fabric.api.datagen.v1.provider.FabricLootTableProvider
GSON
-
Constructor Summary
ConstructorDescriptionSimpleFabricLootTableProvider
(FabricDataGenerator dataGenerator, net.minecraft.loot.context.LootContextType lootContextType) -
Method Summary
Modifier and TypeMethodDescriptionfinal FabricDataGenerator
final net.minecraft.loot.context.LootContextType
getName()
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
protected final net.minecraft.loot.context.LootContextType lootContextType
-
-
Constructor Details
-
SimpleFabricLootTableProvider
public SimpleFabricLootTableProvider(FabricDataGenerator dataGenerator, net.minecraft.loot.context.LootContextType lootContextType)
-
-
Method Details
-
getLootContextType
@Internal public final net.minecraft.loot.context.LootContextType getLootContextType()- Specified by:
getLootContextType
in interfaceFabricLootTableProvider
-
getFabricDataGenerator
- Specified by:
getFabricDataGenerator
in interfaceFabricLootTableProvider
-
getName
- Specified by:
getName
in interfacenet.minecraft.data.DataProvider
-