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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested 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, values

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SpellPartDataProvider(String namespace, net.minecraft.data.PackOutput output)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(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 void
    Override this to add your own objects.
     
    run(net.minecraft.data.CachedOutput output)
     

    Methods inherited from class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataProvider

    add, blockId, fluidId, itemId, remove, toJson

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpellPartDataProvider

      protected SpellPartDataProvider(String namespace, net.minecraft.data.PackOutput output)
  • 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>
    • 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.