public class Boulder extends ConstructSpell<BoulderConstruct>
  • Field Details

  • Constructor Details

    • Boulder

      public Boulder()
  • Method Details

    • addConstructExtras

      protected void addConstructExtras(CastContext ctx, BoulderConstruct construct, net.minecraft.core.Direction side)
      Description copied from class: ConstructSpell
      Applies additional modifications to the construct after it has been created and configured, but before it is added to the world.

      Override this method in subclasses to apply spell-specific behavior, additional attributes, or visual effects to the construct.

      Overrides:
      addConstructExtras in class ConstructSpell<BoulderConstruct>
      Parameters:
      ctx - the cast context containing spell information and modifiers
      construct - construct entity that has been created and configured
      side - direction the construct is facing, or null if not applicable
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Description copied from class: Spell
      This method is where you should set the default properties for your spell when creating a new spell class. This method is called in the constructor of the Spell class, and the properties returned by this method are assigned to the spell's properties field.
      Overrides:
      properties in class ConstructSpell<BoulderConstruct>
      Returns:
      A SpellProperties object with the default properties for your spell.