Interface ArsMagicaAPI


@NonExtendable public interface ArsMagicaAPI
  • Field Details

  • Method Details

    • get

      static ArsMagicaAPI get()
      Returns:
      The API instance.
    • getCreativeModeTab

      net.minecraft.world.item.CreativeModeTab getCreativeModeTab()
      Returns:
      The creative mode tab of the mod.
    • getBookStack

      net.minecraft.world.item.ItemStack getBookStack()
      Returns:
      The arcane compendium item stack.
    • getSkillPointRegistry

      net.minecraftforge.registries.IForgeRegistry<SkillPoint> getSkillPointRegistry()
      Returns:
      The registry for skill points.
    • getAffinityRegistry

      net.minecraftforge.registries.IForgeRegistry<Affinity> getAffinityRegistry()
      Returns:
      The registry for affinities.
    • getSpellPartRegistry

      net.minecraftforge.registries.IForgeRegistry<ISpellPart> getSpellPartRegistry()
      Returns:
      The registry for spell parts.
    • getContingencyTypeRegistry

      net.minecraftforge.registries.IForgeRegistry<ContingencyType> getContingencyTypeRegistry()
      Returns:
      The registry for contingency types.
    • getRitualTriggerTypeRegistry

      @Experimental net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualTrigger>> getRitualTriggerTypeRegistry()
    • getRitualRequirementTypeRegistry

      @Experimental net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualRequirement>> getRitualRequirementTypeRegistry()
    • getRitualEffectTypeRegistry

      @Experimental net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualEffect>> getRitualEffectTypeRegistry()
    • getSpellDataManager

      ISpellDataManager getSpellDataManager()
      Returns:
      The spell data manager instance.
    • getSpellTransformationManager

      ISpellTransformationManager getSpellTransformationManager()
      Returns:
      The spell data manager instance.
    • getSkillHelper

      @Unmodifiable ISkillHelper getSkillHelper()
      Returns:
      The skill helper instance.
    • getAffinityHelper

      @Unmodifiable IAffinityHelper getAffinityHelper()
      Returns:
      The affinity helper instance.
    • getMagicHelper

      @Unmodifiable IMagicHelper getMagicHelper()
      Returns:
      The magic helper instance.
    • getManaHelper

      @Unmodifiable IManaHelper getManaHelper()
      Returns:
      The mana helper instance.
    • getBurnoutHelper

      @Unmodifiable IBurnoutHelper getBurnoutHelper()
      Returns:
      The burnout helper instance.
    • getSpellHelper

      @Unmodifiable ISpellHelper getSpellHelper()
      Returns:
      The spell helper instance.
    • getRiftHelper

      @Unmodifiable IRiftHelper getRiftHelper()
      Returns:
      The rift helper instance.
    • getEtheriumHelper

      @Unmodifiable IEtheriumHelper getEtheriumHelper()
      Returns:
      The etherium helper instance.
    • getContingencyHelper

      @Unmodifiable IContingencyHelper getContingencyHelper()
      Returns:
      The contingency helper instance.
    • openOcculusGui

      void openOcculusGui(net.minecraft.world.entity.player.Player player)
      Opens the occulus gui for the given player.
      Parameters:
      player - The player to open the gui for.
    • openSpellCustomizationGui

      void openSpellCustomizationGui(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Opens the spell customization gui for the given player.
      Parameters:
      level - The level to open the gui in.
      player - The player to open the gui for.
      stack - The spell item stack to open the gui for.
    • openSpellRecipeGui

      void openSpellRecipeGui(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
      Opens the spell recipe gui for the given player.
      Parameters:
      level - The level to open the gui in.
      player - The player to open the gui for.
      stack - The spell recipe item stack to open the gui for.
    • makeSpell

      ISpell makeSpell(List<ShapeGroup> shapeGroups, SpellStack spellStack, net.minecraft.nbt.CompoundTag additionalData)
      Make an instance of ISpell.
      Parameters:
      shapeGroups - The shape groups to use.
      spellStack - The spell stack to use.
      additionalData - The additional data to use.
      Returns:
      The spell instance.
    • makeSpell

      ISpell makeSpell(SpellStack spellStack, ShapeGroup... shapeGroups)
      Make an instance of ISpell.
      Parameters:
      spellStack - The spell stack to use.
      shapeGroups - The shape groups to use.
      Returns:
      The spell instance.