Class OneWayPortalDestination

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

public class OneWayPortalDestination extends Portal
A OneWayPortalDestination is an invisible point where players are placed when they use a portal that leads there. One cannot interact with OneWayPortalDestinations in any other way.
  • Constructor Details

    • OneWayPortalDestination

      public OneWayPortalDestination()
      Creates a OneWayPortalDestination.
  • Method Details

    • setDestination

      public void setDestination(String zone, Object number)
      Cannot be used, as one way portal destinations are only destinations of other portals.
      Overrides:
      setDestination in class Portal
      Parameters:
      zone - The target zone.
      number - A reference tag.
    • loaded

      public boolean loaded()
      Overrides:
      loaded in class Portal
    • 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 Portal
      Parameters:
      user - the RPEntity who uses the object
      Returns:
      true if successful