Class VelocityProxyDataHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.geysermc.floodgate.core.addon.data.CommonDataHandler
org.geysermc.floodgate.velocity.addon.data.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
ConstructorsConstructorDescriptionVelocityProxyDataHandler(org.geysermc.floodgate.core.config.FloodgateConfig config, org.geysermc.floodgate.core.connection.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
Modifier and TypeMethodDescriptionbooleanchannelRead(Object packet) protected ObjectsetHostname(Object handshakePacket, String hostname) protected voidsetNewIp(io.netty.channel.Channel channel, InetSocketAddress newIp) protected booleanshouldRemoveHandler(org.geysermc.floodgate.core.connection.FloodgateHandshakeHandler.HandshakeResult result) Methods inherited from class org.geysermc.floodgate.core.addon.data.CommonDataHandler
channelRead, disablePacketQueue, exceptionCaught, getKickMessage, handle, handlerAdded, removeSelf, setKickMessage, shouldCallFireReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Constructor Details
-
VelocityProxyDataHandler
public VelocityProxyDataHandler(org.geysermc.floodgate.core.config.FloodgateConfig config, org.geysermc.floodgate.core.connection.FloodgateHandshakeHandler handshakeHandler, org.geysermc.floodgate.core.addon.data.PacketBlocker blocker, io.netty.util.AttributeKey<String> kickMessageAttribute, org.geysermc.floodgate.api.logger.FloodgateLogger logger)
-
-
Method Details
-
setNewIp
- Specified by:
setNewIpin classorg.geysermc.floodgate.core.addon.data.CommonDataHandler
-
setHostname
- Specified by:
setHostnamein classorg.geysermc.floodgate.core.addon.data.CommonDataHandler
-
shouldRemoveHandler
protected boolean shouldRemoveHandler(org.geysermc.floodgate.core.connection.FloodgateHandshakeHandler.HandshakeResult result) - Overrides:
shouldRemoveHandlerin classorg.geysermc.floodgate.core.addon.data.CommonDataHandler
-
channelRead
- Specified by:
channelReadin classorg.geysermc.floodgate.core.addon.data.CommonDataHandler
-