Class SecondarySpellShape
java.lang.Object
at.minecraftschurli.mods.arsmagicalegacy.api.spell.SpellPart
at.minecraftschurli.mods.arsmagicalegacy.api.spell.SecondarySpellShape
Represents a secondary spell shape. Secondary shapes must be in a
SpellShapeGroup, with a primary shape before it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SpellCastResultcast(List<SpellModifier> modifiers, SpellCastContext context) Casts this part.getStats()If the spell part is a modifier, returns theSpellStats the modifier modifies.final booleanfinal booleanfinal booleanfinal booleanMethods inherited from class SpellPart
getData, getData, getDataComponentType, isShape
-
Constructor Details
-
SecondarySpellShape
-
-
Method Details
-
isPrimaryShape
public final boolean isPrimaryShape()- Specified by:
isPrimaryShapein classSpellPart- Returns:
- Whether the spell part is a primary shape.
-
isSecondaryShape
public final boolean isSecondaryShape()- Specified by:
isSecondaryShapein classSpellPart- Returns:
- Whether the spell part is a secondary shape.
-
isComponent
public final boolean isComponent()- Specified by:
isComponentin classSpellPart- Returns:
- Whether the spell part is a component.
-
isModifier
public final boolean isModifier()- Specified by:
isModifierin classSpellPart- Returns:
- Whether the spell part is a modifier.
-
getStats
-
cast
Casts this part.- Parameters:
modifiers- TheSpellModifiers to consider.context- TheSpellCastContexts to use.- Returns:
- A
SpellCastResultrepresenting the result of the cast. - See Also:
-