Class NecroStaff

All Implemented Interfaces:
EquipListener, TurnListener, UseListener, Killer, Cloneable, Iterable<String>, Serializable

public class NecroStaff extends Item
Represents a creature summon staff.
  • Constructor Details

    • NecroStaff

      public NecroStaff(String name, String clazz, String subclass, Map<String,​String> attributes)
      Creates a new necromancer staff.
      Parameters:
      name -
      clazz -
      subclass -
      attributes -
    • NecroStaff

      public NecroStaff(NecroStaff item)
      Copy constructor.
      Parameters:
      item - item to copy
  • Method Details

    • onUsed

      public boolean onUsed(RPEntity user)
      Is invoked when the necromancer staff is used.
      Specified by:
      onUsed in interface UseListener
      Overrides:
      onUsed in class Item
      Parameters:
      user - The player who used the staff
      Returns:
      true iff summoning was successful