Class GeyserServerInitializer

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockChannelInitializer<org.cloudburstmc.protocol.bedrock.BedrockServerSession>
org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockServerInitializer
org.geysermc.geyser.network.GeyserServerInitializer
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
Direct Known Subclasses:
NetherNetChannelInitialiser, RakServerInitializer

public abstract class GeyserServerInitializer extends org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockServerInitializer
Shared by every Bedrock transport: turns each new Bedrock session into a GeyserSession. Subclasses only set up the transport specific part of the pipeline.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final GeyserImpl
     

    Fields inherited from class org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockChannelInitializer

    RAKNET_MINECRAFT_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    GeyserServerInitializer(GeyserImpl geyser, String playerThreadName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.cloudburstmc.protocol.bedrock.BedrockPeer
    createPeer(io.netty.channel.Channel channel)
     
    io.netty.channel.DefaultEventLoopGroup
     
    void
    initSession(@NonNull org.cloudburstmc.protocol.bedrock.BedrockServerSession bedrockServerSession)
     

    Methods inherited from class org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockServerInitializer

    createSession0, preInitChannel

    Methods inherited from class org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockChannelInitializer

    createSession, getCompression, initChannel, initPacketCodec, postInitChannel

    Methods inherited from class io.netty.channel.ChannelInitializer

    channelRegistered, exceptionCaught, handlerAdded, handlerRemoved

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • GeyserServerInitializer

      protected GeyserServerInitializer(GeyserImpl geyser, String playerThreadName)
  • Method Details

    • initSession

      public void initSession(@NonNull org.cloudburstmc.protocol.bedrock.BedrockServerSession bedrockServerSession)
      Specified by:
      initSession in class org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockChannelInitializer<org.cloudburstmc.protocol.bedrock.BedrockServerSession>
    • createPeer

      protected org.cloudburstmc.protocol.bedrock.BedrockPeer createPeer(io.netty.channel.Channel channel)
      Overrides:
      createPeer in class org.cloudburstmc.protocol.bedrock.netty.initializer.BedrockChannelInitializer<org.cloudburstmc.protocol.bedrock.BedrockServerSession>
    • getEventLoopGroup

      public io.netty.channel.DefaultEventLoopGroup getEventLoopGroup()