Package net.minecraft.data.loot
Class LootTableProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
ForgeLootTableProvider
-
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_330862_) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
run
(CachedOutput p_254060_) private CompletableFuture
<?> run
(CachedOutput p_327970_, HolderLookup.Provider p_331092_) private static ResourceLocation
sequenceIdForLootTable
(ResourceKey<LootTable> p_331928_) protected void
validate
(Registry<LootTable> map, ValidationContext validationcontext, ProblemReporter report)
-
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_330862_)
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
run
-
sequenceIdForLootTable
-
getName
- Specified by:
getName
in interfaceDataProvider
-
getTables
-
validate
protected void validate(Registry<LootTable> map, ValidationContext validationcontext, ProblemReporter report)
-