Class SkillProvider.Builder

java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.SkillProvider.Builder
Enclosing class:
SkillProvider

public static class SkillProvider.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(net.minecraft.resources.ResourceLocation occulusTab, int x, int y)
  • Method Details

    • setHidden

      public SkillProvider.Builder setHidden()
      Sets this skill's hidden property to true.
    • addCost

      public SkillProvider.Builder addCost(net.minecraft.resources.ResourceLocation point, int amount)
      Adds a learning cost to this skill.
      Parameters:
      point - The id of the skill point the skill should cost.
      amount - The amount of skill points the skill should cost.
    • addCost

      public SkillProvider.Builder addCost(SkillPoint point, int amount)
      Adds a learning cost to this skill.
      Parameters:
      point - The skill point the skill should cost.
      amount - The amount of skill points the skill should cost.
    • addCost

      public SkillProvider.Builder addCost(net.minecraft.core.Holder<SkillPoint> point, int amount)
      Adds a learning cost to this skill.
      Parameters:
      point - The skill point the skill should cost.
      amount - The amount of skill points the skill should cost.
    • addCost

      public SkillProvider.Builder addCost(net.minecraft.resources.ResourceLocation point)
      Adds a learning cost to this skill.
      Parameters:
      point - The skill point the skill should cost.
    • addCost

      public SkillProvider.Builder addCost(SkillPoint point)
      Adds a learning cost to this skill.
      Parameters:
      point - The skill point the skill should cost.
    • addCost

      public SkillProvider.Builder addCost(net.minecraft.core.Holder<SkillPoint> point)
      Adds a learning cost to this skill.
      Parameters:
      point - The skill point the skill should cost.
    • addParent

      public SkillProvider.Builder addParent(net.minecraft.resources.ResourceLocation parent)
      Adds a parent skill that must be learned first.
      Parameters:
      parent - The id of the parent skill to add.
    • build

      public Skill build()