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.
  • Constructor Details

    • SpellPartDataProvider

      public SpellPartDataProvider(String namespace, net.minecraft.data.DataGenerator generator)
  • Method Details

    • createSpellPartData

      protected abstract void createSpellPartData()
    • run

      public void run(net.minecraft.data.HashCache pCache)
      Specified by:
      run in interface net.minecraft.data.DataProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.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.