Class SpellPartDataProvider
java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.SpellPartDataProvider
- All Implemented Interfaces:
net.minecraft.data.DataProvider
public abstract class SpellPartDataProvider
extends Object
implements net.minecraft.data.DataProvider
Base class for spell part data generators.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionSpellPartDataProvider(String namespace, net.minecraft.data.DataGenerator generator) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreateSpellPartData(ISpellPart spellPart, float manaCost) createSpellPartData(ISpellPart spellPart, float manaCost, float burnout) createSpellPartData(Supplier<? extends ISpellPart> spellPart, float manaCost) createSpellPartData(Supplier<? extends ISpellPart> spellPart, float manaCost, float burnout) createSpellPartData(net.minecraft.resources.ResourceLocation spellPart, float manaCost) createSpellPartData(net.minecraft.resources.ResourceLocation spellPart, float manaCost, float burnout) createSpellPartData(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost) createSpellPartData(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost, float burnout) getName()voidrun(net.minecraft.data.CachedOutput pCache)
-
Constructor Details
-
SpellPartDataProvider
-
-
Method Details
-
createSpellPartData
protected abstract void createSpellPartData() -
run
public void run(net.minecraft.data.CachedOutput pCache) - Specified by:
runin interfacenet.minecraft.data.DataProvider
-
getName
- Specified by:
getNamein interfacenet.minecraft.data.DataProvider
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(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.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(ISpellPart spellPart, float manaCost) - Parameters:
spellPart- The new spell part.manaCost- The mana cost for the new spell part.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(Supplier<? extends ISpellPart> spellPart, float manaCost) - Parameters:
spellPart- The new spell part.manaCost- The mana cost for the new spell part.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(net.minecraftforge.registries.RegistryObject<? extends ISpellPart> spellPart, float manaCost) - Parameters:
spellPart- The new spell part.manaCost- The mana cost for the new spell part.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(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.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(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.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(Supplier<? 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.- Returns:
- A new spell part data object.
-
createSpellPartData
public SpellPartDataProvider.SpellPartDataBuilder createSpellPartData(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.- Returns:
- A new spell part data object.
-