Class BalloonScroll

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

public class BalloonScroll extends TimedTeleportScroll
Represents the balloon that takes the player to 7 kikareukin clouds, after which it will teleport player to a random location in 6 kikareukin islands.
  • Constructor Details

    • BalloonScroll

      public BalloonScroll(String name, String clazz, String subclass, Map<String,​String> attributes)
      Creates a new timed marked BalloonScroll scroll.
      Parameters:
      name -
      clazz -
      subclass -
      attributes -
    • BalloonScroll

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

    • getBeforeReturnMessage

      protected String getBeforeReturnMessage()
      Description copied from class: TimedTeleportScroll
      override this to show a message before teleporting the player back.
      Overrides:
      getBeforeReturnMessage in class TimedTeleportScroll
      Returns:
      the message to shown or null for no message
    • getAfterReturnMessage

      protected String getAfterReturnMessage()
      Description copied from class: TimedTeleportScroll
      override this to show a message after teleporting the player back.
      Overrides:
      getAfterReturnMessage in class TimedTeleportScroll
      Returns:
      the message to shown or null for no message
    • useTeleportScroll

      protected boolean useTeleportScroll(Player player)
      Description copied from class: TimedTeleportScroll
      Is invoked when a teleporting scroll is used. Tries to put the player on the scroll's destination, or near it.
      Overrides:
      useTeleportScroll in class TimedTeleportScroll
      Parameters:
      player - The player who used the scroll and who will be teleported
      Returns:
      true if teleport was successful