Class BungeeChannelInitializer

java.lang.Object
net.md_5.bungee.protocol.channel.BungeeChannelInitializer

public abstract class BungeeChannelInitializer extends Object
This class hold a netty channel initializer that calls the given ChannelAcceptor. Use create(ChannelAcceptor) to create a new instance.

Please note that this API is unsafe and doesn't provide any guarantees about the stability of the channel pipeline or the API itself. Use at your own risk.

  • Method Details

    • getChannelAcceptor

      public abstract ChannelAcceptor getChannelAcceptor()
    • getChannelInitializer

      public abstract io.netty.channel.ChannelInitializer<io.netty.channel.Channel> getChannelInitializer()
    • create

      public static BungeeChannelInitializer create(ChannelAcceptor acceptor)
      Creates a new instance of BungeeChannelInitializer
      Parameters:
      acceptor - the ChannelAcceptor that will accept the channel and initializer the pipeline
      Returns:
      BungeeChannelInitializer containing a cached ChannelInitializer that will call the acceptor