Class Netty4

java.lang.Object
org.geysermc.floodgate.core.Netty4

@Factory public final class Netty4 extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.util.AttributeKey<org.geysermc.api.connection.Connection>
     
    io.netty.util.AttributeKey<net.kyori.adventure.text.Component>
     
    static void
    removeHandler(io.netty.channel.ChannelPipeline pipeline, String handler)
    This method is used in Addons.
    Most addons can be removed once the player associated to the channel has been logged in, but they should also be removed once the inject is removed.

    Methods inherited from class java.lang.Object

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

    • Netty4

      public Netty4()
  • Method Details

    • kickMessageAttribute

      @Bean @Singleton @Named("kickMessageAttribute") public io.netty.util.AttributeKey<net.kyori.adventure.text.Component> kickMessageAttribute()
    • connectionAttribute

      @Bean @Singleton @Named("connectionAttribute") public io.netty.util.AttributeKey<org.geysermc.api.connection.Connection> connectionAttribute()
    • removeHandler

      public static void removeHandler(io.netty.channel.ChannelPipeline pipeline, String handler)
      This method is used in Addons.
      Most addons can be removed once the player associated to the channel has been logged in, but they should also be removed once the inject is removed. Because of how Netty works it will throw an exception and we don't want that. This method removes those handlers safely.
      Parameters:
      pipeline - the pipeline
      handler - the name of the handler to remove