Package org.geysermc.geyser.session
Class DownstreamSession
java.lang.Object
org.geysermc.geyser.session.DownstreamSession
-
Constructor Summary
ConstructorsConstructorDescriptionDownstreamSession(org.geysermc.mcprotocollib.network.tcp.TcpSession session) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(String reason) voiddisconnect(String reason, Throwable throwable) org.geysermc.mcprotocollib.protocol.codec.MinecraftCodecHelperGets the codec helper for this session.org.geysermc.mcprotocollib.network.tcp.TcpSessionbooleanisClosed()voidsendPacket(@NonNull org.geysermc.mcprotocollib.network.packet.Packet packet)
-
Constructor Details
-
DownstreamSession
public DownstreamSession(org.geysermc.mcprotocollib.network.tcp.TcpSession session)
-
-
Method Details
-
sendPacket
public void sendPacket(@NonNull org.geysermc.mcprotocollib.network.packet.Packet packet) -
disconnect
-
disconnect
-
isClosed
public boolean isClosed() -
getCodecHelper
public org.geysermc.mcprotocollib.protocol.codec.MinecraftCodecHelper getCodecHelper()Gets the codec helper for this session.- Returns:
- the codec helper for this session
-
getSession
public org.geysermc.mcprotocollib.network.tcp.TcpSession getSession()
-