Class VelocityProxyDataHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public final class VelocityProxyDataHandler
    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
      VelocityProxyDataHandler​(org.geysermc.floodgate.core.config.FloodgateConfig config, org.geysermc.floodgate.core.player.FloodgateHandshakeHandler handshakeHandler, org.geysermc.floodgate.core.addon.data.PacketBlocker blocker, io.netty.util.AttributeKey<String> kickMessageAttribute, org.geysermc.floodgate.api.logger.FloodgateLogger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean channelRead​(Object packet)  
      protected Object setHostname​(Object handshakePacket, String hostname)  
      protected void setNewIp​(io.netty.channel.Channel channel, InetSocketAddress newIp)  
      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, shouldCallFireRead
      • 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 interface io.netty.channel.ChannelHandler

        handlerRemoved
    • Constructor Detail

      • VelocityProxyDataHandler

        public VelocityProxyDataHandler​(org.geysermc.floodgate.core.config.FloodgateConfig config,
                                        org.geysermc.floodgate.core.player.FloodgateHandshakeHandler handshakeHandler,
                                        org.geysermc.floodgate.core.addon.data.PacketBlocker blocker,
                                        io.netty.util.AttributeKey<String> kickMessageAttribute,
                                        org.geysermc.floodgate.api.logger.FloodgateLogger logger)
    • Method Detail

      • 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)
        Specified by:
        setHostname in class org.geysermc.floodgate.core.addon.data.CommonDataHandler
      • shouldRemoveHandler

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

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