Package org.geysermc.geyser.session
Class UpstreamSession
java.lang.Object
org.geysermc.geyser.session.UpstreamSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disconnect(String reason)
int
Gets the session's protocol version.com.nukkitx.protocol.bedrock.BedrockServerSession
boolean
isClosed()
boolean
void
sendPacket(@NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)
void
sendPacketImmediately(@NonNull com.nukkitx.protocol.bedrock.BedrockPacket packet)
void
setInitialized(boolean initialized)
-
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
-
isClosed
public boolean isClosed() -
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)
-