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>
  • Method Details

    • run

      public CompletableFuture<?> run(net.minecraft.data.CachedOutput output)
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Overrides:
      run in class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
    • getName

      public String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider
      Specified by:
      getName in class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider<SpellPartDataProvider.Builder>
      Returns:
      The name of this data provider, for use in logging.
      Should look something like this: return "TheThingsBeingDatagenned[" + namespace + "]";
    • builder

      public SpellPartDataProvider.Builder builder(net.minecraft.resources.ResourceKey<? extends ISpellPart> 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.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.minecraft.core.Holder<? 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.ResourceKey<? extends ISpellPart> 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.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.minecraft.core.Holder<? 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.