Class Teleporter


  • public class Teleporter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Teleporter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean isOpen()
      Checks if the teleporter interface is open.
      void lastTeleport()
      Deprecated.
      void open()
      Opens the teleporter interface if it is not already open.
      void teleport​(java.lang.String categoryName, java.lang.String teleportName)
      Teleports to the specified location via the teleporter interface.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Teleporter

        public Teleporter()
    • Method Detail

      • isOpen

        public boolean isOpen()
        Checks if the teleporter interface is open.
        Returns:
        true if the teleporter widget is usable (open), false otherwise.
      • open

        public void open()
        Opens the teleporter interface if it is not already open.
      • teleport

        public void teleport​(java.lang.String categoryName,
                             java.lang.String teleportName)
        Teleports to the specified location via the teleporter interface.
        Parameters:
        category - the category in the teleporter menu (e.g., "Cities").
        teleport - the specific teleport location within the selected category.
      • lastTeleport

        @Deprecated
        public void lastTeleport()
        Deprecated.