All Implemented Interfaces:
Killer, Cloneable, Iterable<String>, Serializable
Direct Known Subclasses:
Clock, Description, MazeSign, PopupImage, Reader, RentedSign, ShopSign

public class Sign extends Entity
A sign which is placed on the ground and can be right clicked by players to be read.
  • Field Details

  • Constructor Details

    • Sign

      public Sign()
      Creates a sign.
    • Sign

      public Sign(RPObject rpobject)
      Creates a sign based on an existing RPObject. This is just for loading a sign from the database, use the other constructors.
      Parameters:
      rpobject -
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • getText

      public String getText()
      Get the sign's text.
      Returns:
      The sign text.
    • setText

      public void setText(String text)
      Set the sign text.
      Parameters:
      text - The sign text.
    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Entity
      Returns:
      description from the players point of view