Interface BoarConnection

All Known Implementing Classes:
CloudburstConnection

public interface BoarConnection
The outbound transport Boar uses to reach a single Bedrock client. Boar only ever needs to send packets and reach the underlying netty channel (to flush and to install its pipeline handlers), so this is intentionally narrower than a full BedrockServerSession. Abstracting it this way lets a player be backed by something other than a cloudburst BedrockServerSession — e.g. a custom proxy-fed connection that writes packets straight to a channel and has no session object at all.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.Channel
     
    void
    sendPacket(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet)
     
    void
    sendPacketImmediately(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet)
     
  • Method Details

    • sendPacket

      void sendPacket(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet)
    • sendPacketImmediately

      void sendPacketImmediately(org.cloudburstmc.protocol.bedrock.packet.BedrockPacket packet)
    • getChannel

      io.netty.channel.Channel getChannel()