java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.JoinRefusal

public final class JoinRefusal extends Object
Why a join did not happen, and the status it is refused with.

The constants are what this signaling raises on its own. A host answering something else builds one. Only the status reaches the peer for now, since the client shows nothing else; a message can be added here later without changing what callers build.

  • Field Details

    • INVALID_IDENTITY

      public static final JoinRefusal INVALID_IDENTITY
      The offer carried no usable identity assertion.
    • REJECTED

      public static final JoinRefusal REJECTED
      The player filter turned the peer away.
    • FULL

      public static final JoinRefusal FULL
      There is no room for another player.
    • DUPLICATE

      public static final JoinRefusal DUPLICATE
      Another join for this network ID is already waiting for an answer.
    • TIMEOUT

      public static final JoinRefusal TIMEOUT
      Nothing produced an answer in time.
    • ERROR

      public static final JoinRefusal ERROR
      Signaling is not in a state to answer, or something failed while answering.
  • Constructor Details

    • JoinRefusal

      public JoinRefusal(io.netty.handler.codec.http.HttpResponseStatus status)
  • Method Details

    • status

      public io.netty.handler.codec.http.HttpResponseStatus status()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object