Class SpigotDataHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.geysermc.floodgate.core.addon.data.CommonDataHandler
org.geysermc.floodgate.addon.data.SpigotDataHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public final class SpigotDataHandler extends org.geysermc.floodgate.core.addon.data.CommonDataHandler
  • Nested Class Summary

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

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

    Fields inherited from class org.geysermc.floodgate.core.addon.data.CommonDataHandler

    blocker, config, ctx, handshakeHandler, handshakePacket, kickMessageAttribute, packetQueue
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpigotDataHandler(org.geysermc.floodgate.core.player.FloodgateHandshakeHandler handshakeHandler, org.geysermc.floodgate.core.config.FloodgateConfig config, io.netty.util.AttributeKey<String> kickMessageAttribute)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected Object
    setHostname(Object handshakePacket, String hostname)
     
    protected void
    setNewIp(io.netty.channel.Channel channel, InetSocketAddress newIp)
     
    protected boolean
    shouldCallFireRead(Object queuedPacket)
     
    protected boolean
    shouldRemoveHandler(org.geysermc.floodgate.core.player.FloodgateHandshakeHandler.HandshakeResult result)
     

    Methods inherited from class org.geysermc.floodgate.core.addon.data.CommonDataHandler

    channelRead, disablePacketQueue, exceptionCaught, getKickMessage, handle, handlerAdded, removeSelf, setKickMessage

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler

    handlerRemoved
  • Constructor Details

    • SpigotDataHandler

      public SpigotDataHandler(org.geysermc.floodgate.core.player.FloodgateHandshakeHandler handshakeHandler, org.geysermc.floodgate.core.config.FloodgateConfig config, io.netty.util.AttributeKey<String> kickMessageAttribute)
  • Method Details

    • setNewIp

      protected void setNewIp(io.netty.channel.Channel channel, InetSocketAddress newIp)
      Specified by:
      setNewIp in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
    • setHostname

      protected Object setHostname(Object handshakePacket, String hostname) throws IllegalStateException
      Specified by:
      setHostname in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
      Throws:
      IllegalStateException
    • shouldRemoveHandler

      protected boolean shouldRemoveHandler(org.geysermc.floodgate.core.player.FloodgateHandshakeHandler.HandshakeResult result)
      Overrides:
      shouldRemoveHandler in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
    • shouldCallFireRead

      protected boolean shouldCallFireRead(Object queuedPacket)
      Overrides:
      shouldCallFireRead in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
    • channelRead

      public boolean channelRead(Object packet) throws Exception
      Specified by:
      channelRead in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
      Throws:
      Exception