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>
-
Field Summary
Fields inherited from class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataBuilder
id -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(net.minecraft.resources.ResourceLocation id, SpellPartDataProvider provider, float manaCost) -
Method Summary
Modifier and TypeMethodDescriptionaddAffinity(Affinity affinity, float shift) Adds an affinity.addAffinity(Supplier<Affinity> affinity, float shift) Adds an affinity.addAffinity(net.minecraft.core.Holder<Affinity> affinity, float shift) Adds an affinity.addAffinity(net.minecraft.resources.ResourceLocation affinity, float shift) Adds an affinity.addIngredient(ISpellIngredient ingredient) Adds a spell ingredient.addReagent(int amount, net.minecraft.world.item.crafting.Ingredient ingredient) Adds a spell reagent.addReagent(ItemFilter filter) Adds a spell reagent.addReagent(net.minecraft.world.item.crafting.Ingredient ingredient) Adds a spell reagent.addReagent(net.minecraft.world.item.ItemStack stack) Adds a spell reagent.setBurnout(float burnout) Sets the burnout cost.Methods inherited from class com.github.minecraftschurlimods.easydatagenlib.api.AbstractDataBuilder
build
-
Constructor Details
-
Builder
public Builder(net.minecraft.resources.ResourceLocation id, SpellPartDataProvider provider, float manaCost)
-
-
Method Details
-
setBurnout
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
Adds a spell reagent.- Parameters:
stack- The spell reagent to add.
-
addReagent
Adds a spell reagent.- Parameters:
filter- The spell reagent to add.
-
addIngredient
Adds a spell ingredient.- Parameters:
ingredient- The spell ingredient to add.
-
addAffinity
Adds an affinity.- Parameters:
affinity- The affinity to add.
-
addAffinity
public SpellPartDataProvider.Builder addAffinity(net.minecraft.core.Holder<Affinity> affinity, float shift) Adds an affinity.- Parameters:
affinity- The affinity to add.
-
addAffinity
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.
-