Class UpstreamSession
java.lang.Object
org.geysermc.connector.network.session.UpstreamSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String reason)intGets the session's protocol version.booleanisClosed()voidsendPacket(@NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)voidsendPacketImmediately(@NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)
-
Constructor Details
-
UpstreamSession
public UpstreamSession()
-
-
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
-
isClosed
public boolean isClosed() -
getAddress
-
getProtocolVersion
public int getProtocolVersion()Gets the session's protocol version.- Returns:
- the session's protocol version.
-