Class UpstreamSession

java.lang.Object
org.geysermc.geyser.session.UpstreamSession

public class UpstreamSession extends Object
  • Constructor Details

    • UpstreamSession

      public UpstreamSession(com.nukkitx.protocol.bedrock.BedrockServerSession session)
  • Method Details

    • sendPacket

      public void sendPacket(@NonNull @NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • sendPacketImmediately

      public void sendPacketImmediately(@NonNull @NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)
    • disconnect

      public void disconnect(String reason)
    • isClosed

      public boolean isClosed()
    • getAddress

      public InetSocketAddress getAddress()
    • getProtocolVersion

      public int getProtocolVersion()
      Gets the session's protocol version.
      Returns:
      the session's protocol version.
    • getSession

      public com.nukkitx.protocol.bedrock.BedrockServerSession getSession()
    • isInitialized

      public boolean isInitialized()
    • setInitialized

      public void setInitialized(boolean initialized)