Package bridge

Class Jump

All Implemented Interfaces:
Serializable

public final class Jump extends RuntimeException
A class for teleporting to persistent labels
See Also:
Notes:
Jumps must be constructed and thrown in a single statement. They may not be stored. Usages of these constructors are counted as invocations.
  • 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.