Enum Class Context.Source

java.lang.Object
java.lang.Enum<Context.Source>
crow.game.codec.Context.Source
All Implemented Interfaces:
Serializable, Comparable<Context.Source>, Constable
Enclosing interface:
Context

public static enum Context.Source extends Enum<Context.Source>
Source determines where the context was constructed and called into. Packet Rules can be constructed in the INIT phase, the DECODE phase, or the ENCODE phase and packet handlers may want to know which is being called for now.
  • Enum Constant Details

  • Method Details

    • values

      public static Context.Source[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Context.Source valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null