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 DataGenerator
private static com.google.gson.Gson
private static org.apache.logging.log4j.Logger
private 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.apache.logging.log4j.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>>>,LootContextParamSet>> subProviders
-
-
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>>>,LootContextParamSet>> getTables() -
validate
-
createPath
-
getName
- Specified by:
getName
in interfaceDataProvider
-