Class SpellPartDataProvider
java.lang.Object
com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
com.github.minecraftschurlimods.arsmagicalegacy.api.data.SpellPartDataProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
public abstract class SpellPartDataProvider
extends com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.data.DataProvider
net.minecraft.data.DataProvider.Factory<T extends net.minecraft.data.DataProvider> -
Field Summary
Fields inherited from class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider
namespace, pathProvider, valuesFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpellPartDataProvider(String namespace, net.minecraft.data.PackOutput output) -
Method Summary
Modifier and TypeMethodDescriptionbuilder(net.minecraft.resources.ResourceLocation spellPart, float manaCost) builder(net.minecraft.resources.ResourceLocation spellPart, float manaCost, float burnout) builder(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost) builder(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost, float burnout) protected abstract voidgenerate()Override this to add your own objects.getName()run(net.minecraft.data.CachedOutput output) Methods inherited from class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider
add, blockId, fluidId, itemId, remove, toJson
-
Constructor Details
-
SpellPartDataProvider
-
-
Method Details
-
run
- Specified by:
runin interfacenet.minecraft.data.DataProvider- Overrides:
runin classcom.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider- Specified by:
getNamein classcom.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
-
generate
protected abstract void generate()Override this to add your own objects. -
builder
public SpellPartDataProvider.Builder builder(net.minecraft.resources.ResourceLocation spellPart, float manaCost) - Parameters:
spellPart- The id of the new spell part.manaCost- The mana cost for the new spell part.
-
builder
public SpellPartDataProvider.Builder builder(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost) - Parameters:
spellPart- The new spell part.manaCost- The mana cost for the new spell part.
-
builder
public SpellPartDataProvider.Builder builder(net.minecraft.resources.ResourceLocation spellPart, float manaCost, float burnout) - Parameters:
spellPart- The id of the new spell part.manaCost- The mana cost for the new spell part.burnout- The burnout for the new spell part.
-
builder
public SpellPartDataProvider.Builder builder(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost, float burnout) - Parameters:
spellPart- The new spell part.manaCost- The mana cost for the new spell part.burnout- The burnout for the new spell part.
-