Package net.minecraft.data.loot
Class LootTableProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
NeoForgeLootTableProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final PackOutput.PathProvider
private final CompletableFuture
<HolderLookup.Provider> private final Set
<ResourceKey<LootTable>> private final List
<LootTableProvider.SubProviderEntry> Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
ConstructorDescriptionLootTableProvider
(PackOutput p_254123_, Set<ResourceKey<LootTable>> p_254481_, List<LootTableProvider.SubProviderEntry> p_253798_, CompletableFuture<HolderLookup.Provider> p_323798_) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
run
(CachedOutput p_254060_) private CompletableFuture
<?> run
(CachedOutput p_324447_, HolderLookup.Provider p_323978_) private static ResourceLocation
sequenceIdForLootTable
(ResourceKey<LootTable> p_336172_) protected void
validate
(WritableRegistry<LootTable> writableregistry, ValidationContext validationcontext, ProblemReporter.Collector problemreporter$collector)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pathProvider
-
requiredTables
-
subProviders
-
registries
-
-
Constructor Details
-
LootTableProvider
public LootTableProvider(PackOutput p_254123_, Set<ResourceKey<LootTable>> p_254481_, List<LootTableProvider.SubProviderEntry> p_253798_, CompletableFuture<HolderLookup.Provider> p_323798_)
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
run
-
getTables
-
validate
protected void validate(WritableRegistry<LootTable> writableregistry, ValidationContext validationcontext, ProblemReporter.Collector problemreporter$collector) -
sequenceIdForLootTable
-
getName
- Specified by:
getName
in interfaceDataProvider
-