Enum Class MessageHandler.State

java.lang.Object
java.lang.Enum<MessageHandler.State>
org.geysermc.geyser.api.network.message.MessageHandler.State
All Implemented Interfaces:
Serializable, Comparable<MessageHandler.State>, Constable
Enclosing interface:
MessageHandler<T extends Message<? extends MessageBuffer>>

public static enum MessageHandler.State extends Enum<MessageHandler.State>
Represents the state after handling a message.
  • Enum Constant Details

    • HANDLED

      public static final MessageHandler.State HANDLED
      The message was handled and should not be processed further.
    • UNHANDLED

      public static final MessageHandler.State UNHANDLED
      The message was not handled and should be passed through for further processing.
    • MODIFIED

      public static final MessageHandler.State MODIFIED
      Indicates that the message has been modified but should still be passed through to the next handler or processing step.
  • Method Details

    • values

      public static MessageHandler.State[] 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 MessageHandler.State 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