Interface ArsMagicaAPI
@NonExtendable
public interface ArsMagicaAPI
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final Stringstatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionstatic ArsMagicaAPIget()net.minecraftforge.registries.IForgeRegistry<Affinity>net.minecraft.world.item.ItemStacknet.minecraftforge.registries.IForgeRegistry<ContingencyType>net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualEffect>>net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualRequirement>>net.minecraftforge.registries.IForgeRegistry<com.mojang.serialization.Codec<? extends RitualTrigger>>net.minecraftforge.registries.IForgeRegistry<SkillPoint>net.minecraftforge.registries.IForgeRegistry<SpellIngredientType<?>>net.minecraftforge.registries.IForgeRegistry<ISpellPart>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) makeSpell(SpellStack spellStack, ShapeGroup... shapeGroups) Make an instance of ISpell.makeSpell(List<ShapeGroup> shapeGroups, SpellStack spellStack, net.minecraft.nbt.CompoundTag additionalData) Make an instance of ISpell.voidopenOcculusGui(net.minecraft.world.entity.player.Player player) Opens the occulus gui for the given player.voidopenSpellCustomizationGui(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.voidopenSpellRecipeGui(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.
-
Field Details
-
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
- Returns:
- The API instance.
-
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() -
getSpellIngredientTypeRegistry
net.minecraftforge.registries.IForgeRegistry<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
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.
-