Enum Class ListenerOptions

java.lang.Object
java.lang.Enum<ListenerOptions>
com.comphenix.protocol.events.ListenerOptions
All Implemented Interfaces:
Serializable, Comparable<ListenerOptions>, java.lang.constant.Constable

public enum ListenerOptions extends Enum<ListenerOptions>
Represents additional options a listener may require.
Author:
Kristian
  • Enum Constant Details

    • INTERCEPT_INPUT_BUFFER

      public static final ListenerOptions INTERCEPT_INPUT_BUFFER
      Retrieve the serialized client packet as it appears on the network stream.
    • DISABLE_GAMEPHASE_DETECTION

      public static final ListenerOptions DISABLE_GAMEPHASE_DETECTION
      Disable the automatic game phase detection that will normally force GamePhase.LOGIN when a packet ID is known to be transmitted during login.
    • SKIP_PLUGIN_VERIFIER

      public static final ListenerOptions SKIP_PLUGIN_VERIFIER
      Do not verify that the owning plugin has a vaid plugin.yml.
    • ASYNC

      public static final ListenerOptions ASYNC
      Notify ProtocolLib that PacketListener.onPacketSending(PacketEvent) is thread safe.
  • Method Details

    • values

      public static ListenerOptions[] 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 ListenerOptions 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