Class NPCOwnedChest

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

public class NPCOwnedChest extends Chest
A chest that is for decoration purpose only. The player cannot open it. If he tries, the nearby NPC will tell him to get away.
Author:
hendrik
  • Constructor Details

    • NPCOwnedChest

      public NPCOwnedChest(SpeakerNPC npc)
      Creates a new NPCOwnedChest.
      Parameters:
      npc - SpeakerNPC
  • Method Details

    • onUsed

      public boolean onUsed(RPEntity user)
      Description copied from interface: UseListener
      Invoked when the object is used.
      Specified by:
      onUsed in interface UseListener
      Overrides:
      onUsed in class Chest
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful