Class HealerBehaviour


public class HealerBehaviour extends SellerBehaviour

Represents the behaviour of a NPC who is able to heal a player. This can either be done for free or paid in a lump sum, or for a price depending on level of the player

Use SpeakerNPC.addHealer() to assign this behaviour to an NPC.

  • Constructor Details

    • HealerBehaviour

      public HealerBehaviour(int cost)
      Creates a new HealerBehaviour.
      Parameters:
      cost - The lump sum that is required to heal
  • Method Details

    • heal

      public void heal(Player player)
      Restores the given player's health to the maximum possible at the player's current level.
      Parameters:
      player - The player who should be healed.