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