Class DownstreamSession

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

public class DownstreamSession extends Object
  • Constructor Details

    • DownstreamSession

      public DownstreamSession(org.geysermc.mcprotocollib.network.ClientSession session)
  • Method Details

    • sendPacket

      public void sendPacket(@NonNull org.geysermc.mcprotocollib.network.packet.Packet packet)
    • disconnect

      public void disconnect(net.kyori.adventure.text.Component reason)
    • disconnect

      public void disconnect(net.kyori.adventure.text.Component reason, Throwable throwable)
    • 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.ClientSession getSession()