Interface ArsMagicaAPI


@NonExtendable public interface ArsMagicaAPI
  • Field Details

    • MOD_ID

      static final String MOD_ID
      See Also:
    • PREFAB_SPELLS_CREATIVE_TAB

      static final net.minecraft.resources.ResourceLocation PREFAB_SPELLS_CREATIVE_TAB
    • MAIN_CREATIVE_TAB

      static final net.minecraft.resources.ResourceLocation MAIN_CREATIVE_TAB
  • Method Details

    • get

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

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

      net.minecraft.core.Registry<SkillPoint> getSkillPointRegistry()
      Returns:
      The registry for skill points.
    • getAffinityRegistry

      net.minecraft.core.Registry<Affinity> getAffinityRegistry()
      Returns:
      The registry for affinities.
    • getSpellPartRegistry

      net.minecraft.core.Registry<ISpellPart> getSpellPartRegistry()
      Returns:
      The registry for spell parts.
    • getContingencyTypeRegistry

      net.minecraft.core.Registry<ContingencyType> getContingencyTypeRegistry()
      Returns:
      The registry for contingency types.
    • getRitualTriggerTypeRegistry

      @Experimental net.minecraft.core.Registry<com.mojang.serialization.Codec<? extends RitualTrigger>> getRitualTriggerTypeRegistry()
    • getRitualRequirementTypeRegistry

      @Experimental net.minecraft.core.Registry<com.mojang.serialization.Codec<? extends RitualRequirement>> getRitualRequirementTypeRegistry()
    • getRitualEffectTypeRegistry

      @Experimental net.minecraft.core.Registry<com.mojang.serialization.Codec<? extends RitualEffect>> getRitualEffectTypeRegistry()
    • getSpellIngredientTypeRegistry

      net.minecraft.core.Registry<SpellIngredientType<?>> getSpellIngredientTypeRegistry()
    • getSpellDataManager

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

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

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

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

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

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

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

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

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

      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.
    • getSpellTransformationFor

      Optional<net.minecraft.world.level.block.state.BlockState> getSpellTransformationFor(net.minecraft.world.level.block.state.BlockState block, net.minecraft.world.level.Level level, net.minecraft.resources.ResourceLocation spellPart)
      Parameters:
      block - The block to check the transition for.
      level - The level to check the transition for.
      spellPart - The spell part to check the transition for.
      Returns:
      The transitioned block state for the given block and spell part or empty.