Class LootTableProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
NeoForgeLootTableProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordNested classes/interfaces inherited from interface DataProvider
DataProvider.Factory<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final PackOutput.PathProviderprivate final CompletableFuture<HolderLookup.Provider> private final Set<ResourceKey<LootTable>> private final List<LootTableProvider.SubProviderEntry> Fields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionLootTableProvider(PackOutput output, Set<ResourceKey<LootTable>> requiredTables, List<LootTableProvider.SubProviderEntry> subProviders, CompletableFuture<HolderLookup.Provider> registries) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetName()run(CachedOutput cache) private CompletableFuture<?> run(CachedOutput cache, HolderLookup.Provider registries) private static Identifierprotected voidvalidate(WritableRegistry<LootTable> tables, ValidationContextSource validationContext, ProblemReporter.Collector problems)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pathProvider
-
requiredTables
-
subProviders
-
registries
-
-
Constructor Details
-
LootTableProvider
public LootTableProvider(PackOutput output, Set<ResourceKey<LootTable>> requiredTables, List<LootTableProvider.SubProviderEntry> subProviders, CompletableFuture<HolderLookup.Provider> registries)
-
-
Method Details
-
run
- Specified by:
runin interfaceDataProvider
-
run
-
getTables
-
validate
protected void validate(WritableRegistry<LootTable> tables, ValidationContextSource validationContext, ProblemReporter.Collector problems) -
sequenceIdForLootTable
-
getName
- Specified by:
getNamein interfaceDataProvider
-