Class TeleportCmd

All Implemented Interfaces:
Argument

public class TeleportCmd extends Subcommand
A subcommand of CameraCmd which teleports the camera to a given Vector3

Provides a required TypedArg which accepts a Vector3 (representing a point in 3D space)

Aliases: teleport, tp, goto, gt

Typical Usage:


     cam teleport (10, 20, 30) - Teleports the camera to the point (10, 20, 30)
     cam tp (0, 0, 0)          - Teleports the camera to the origin
     cam goto (1, 2, 3)        - Teleports the camera to the point (1, 2, 3)
     

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • TeleportCmd

      public TeleportCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.