Class SpellDataProvider
java.lang.Object
com.binaris.wizardry.datagen.provider.SpellDataProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
- Direct Known Subclasses:
EBSpellsProvider
Base class for data providers that generate spell properties files. Extend this class and implement
buildSpells(Consumer) to add spells to the data pack, finally, load it in your mod's data entrypoint.
Note that this class does not automatically include all spells registered in the spell registry;
you must add them yourself in your implementation of buildSpells. This is to allow developers to use this
class to generate data for their own spells without having to re-implement the entire spell registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final net.minecraft.data.PackOutput.PathProviderFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbuildSpells(@NotNull Consumer<Spell> consumer) @NotNull StringgetName()@NotNull CompletableFuture<?>run(@NotNull net.minecraft.data.CachedOutput output)
-
Field Details
-
pathProvider
protected final net.minecraft.data.PackOutput.PathProvider pathProvider -
namespace
-
-
Constructor Details
-
SpellDataProvider
-
-
Method Details
-
run
@NotNull public @NotNull CompletableFuture<?> run(@NotNull @NotNull net.minecraft.data.CachedOutput output) - Specified by:
runin interfacenet.minecraft.data.DataProvider
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider
-
buildSpells
-