Class SpellPartDataProvider.Builder

java.lang.Object
com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataBuilder<SpellPartDataProvider.Builder>
com.github.minecraftschurlimods.arsmagicalegacy.api.data.SpellPartDataProvider.Builder
Enclosing class:
SpellPartDataProvider

public static class SpellPartDataProvider.Builder extends com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataBuilder<SpellPartDataProvider.Builder>
  • Constructor Details

    • Builder

      public Builder(net.minecraft.resources.ResourceLocation id, SpellPartDataProvider provider, float manaCost)
  • Method Details

    • setBurnout

      public SpellPartDataProvider.Builder setBurnout(float burnout)
      Sets the burnout cost.
      Parameters:
      burnout - The burnout cost to set.
    • addReagent

      public SpellPartDataProvider.Builder addReagent(net.minecraft.world.item.crafting.Ingredient ingredient)
      Adds a spell reagent.
      Parameters:
      ingredient - The spell reagent to add.
    • addReagent

      public SpellPartDataProvider.Builder addReagent(int amount, net.minecraft.world.item.crafting.Ingredient ingredient)
      Adds a spell reagent.
      Parameters:
      ingredient - The spell reagent to add.
    • addReagent

      public SpellPartDataProvider.Builder addReagent(net.minecraft.world.item.ItemStack stack)
      Adds a spell reagent.
      Parameters:
      stack - The spell reagent to add.
    • addReagent

      public SpellPartDataProvider.Builder addReagent(ItemFilter filter)
      Adds a spell reagent.
      Parameters:
      filter - The spell reagent to add.
    • addIngredient

      public SpellPartDataProvider.Builder addIngredient(ISpellIngredient ingredient)
      Adds a spell ingredient.
      Parameters:
      ingredient - The spell ingredient to add.
    • addAffinity

      public SpellPartDataProvider.Builder addAffinity(Supplier<Affinity> affinity, float shift)
      Adds an affinity.
      Parameters:
      affinity - The affinity to add.
    • addAffinity

      public SpellPartDataProvider.Builder addAffinity(Affinity affinity, float shift)
      Adds an affinity.
      Parameters:
      affinity - The affinity to add.
    • addAffinity

      public SpellPartDataProvider.Builder addAffinity(net.minecraft.resources.ResourceLocation affinity, float shift)
      Adds an affinity.
      Parameters:
      affinity - The affinity to add.
    • toJson

      protected void toJson(com.google.gson.JsonObject jsonObject)
      Specified by:
      toJson in class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataBuilder<SpellPartDataProvider.Builder>