Package net.minecraft.data.loot
Class LootTableProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
ForgeLootTableProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataGenerator
private static final com.google.gson.Gson
private static final org.slf4j.Logger
private final List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>>>, LootContextParamSet>> Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Path
createPath
(Path p_124454_, ResourceLocation p_124455_) getName()
protected List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>>>, LootContextParamSet>> void
protected void
validate
(Map<ResourceLocation, LootTable> map, ValidationContext validationtracker)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
generator
-
subProviders
private final List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,LootTable.Builder>>>, subProvidersLootContextParamSet>>
-
-
Constructor Details
-
LootTableProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
getTables
protected List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,LootTable.Builder>>>, getTables()LootContextParamSet>> -
validate
-
createPath
-
getName
- Specified by:
getName
in interfaceDataProvider
-