Class ConjureArmor


public class ConjureArmor extends ConjureItemSpell
  • Constructor Details

    • ConjureArmor

      public ConjureArmor()
  • Method Details

    • conjureItem

      protected boolean conjureItem(PlayerCastContext ctx)
      Description copied from class: ConjureItemSpell
      Conjures the item for the caster. This method creates an ItemStack of the specified item, gets the conjure data for it and establishes the duration and expiration time based on the spell properties and modifiers. The conjure data is then associated with the item stack, and the item is added to the caster's inventory. If the caster's inventory is full, a message is sent to the player and the method returns false.
      Overrides:
      conjureItem in class ConjureItemSpell
      Parameters:
      ctx - the context of the spell cast, containing information about the caster, the world, and the spell modifiers
      Returns:
      true if the item was successfully conjured and added to the caster's inventory, false otherwise
      See Also: