Package bridge

Class Jump

All Implemented Interfaces:
Serializable

public final class Jump extends RuntimeException
A class for teleporting to persistent labels
See Also:
Notes:
The constructor for this class does not actually construct anything – so, the imaginary object must be immediately thrown for your code to compile correctly.
  • Constructor Details

    • Jump

      public Jump(int id)
      Teleports to a persistent label in this method
      Parameters:
      id - Label ID constant – no dynamic values or mathematics is permitted here.
    • Jump

      public Jump(String name)
      Teleports to a persistent label in this method
      Parameters:
      name - Label name constant – no dynamic values or string manipulation is permitted here.