Package net.minecraft.network
Class RateLimitedConnection
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<Packet<?>>
net.minecraft.network.ClientConnection
net.minecraft.network.RateLimitedConnection
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
A connection that disconnects from the backing netty channel if too
many packets are received.
- Mappings:
Namespace Name official sx
intermediary net/minecraft/class_5472
named net/minecraft/network/RateLimitedConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Logger
private static final Text
private final int
Fields inherited from class net.minecraft.network.ClientConnection
CLIENT_IO_GROUP, CLIENTBOUND_PROTOCOL_KEY, EPOLL_CLIENT_IO_GROUP, LOCAL_CLIENT_IO_GROUP, NETWORK_MARKER, NETWORK_PACKETS_MARKER, PACKET_RECEIVED_MARKER, PACKET_SENT_MARKER, packetSizeLogger, SERVERBOUND_PROTOCOL_KEY
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.network.ClientConnection
addFlowControlHandler, addHandlers, addValidator, channelActive, channelInactive, channelRead0, connect, connect, connect, connect, connectLocal, disableAutoRead, disconnect, enableAutoRead, exceptionCaught, flush, getAddress, getAddressAsString, getAveragePacketsReceived, getAveragePacketsSent, getDisconnectReason, getOppositeSide, getPacketListener, getSide, handleDisconnection, isChannelAbsent, isEncrypted, isLocal, isOpen, resetPacketSizeLog, send, send, send, setCompressionThreshold, setHandlers, setInitialPacketListener, setPacketListener, setS2CPacketHandler, setupEncryption, submit, tick, tryDisableAutoRead
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, 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
handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official j
Lsx;j:Lorg/slf4j/Logger;
intermediary field_26342
Lnet/minecraft/class_5472;field_26342:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/network/RateLimitedConnection;LOGGER:Lorg/slf4j/Logger;
-
RATE_LIMIT_EXCEEDED_MESSAGE
- Mappings:
Namespace Name Mixin selector official k
Lsx;k:Ltl;
intermediary field_26343
Lnet/minecraft/class_5472;field_26343:Lnet/minecraft/class_2561;
named RATE_LIMIT_EXCEEDED_MESSAGE
Lnet/minecraft/network/RateLimitedConnection;RATE_LIMIT_EXCEEDED_MESSAGE:Lnet/minecraft/text/Text;
-
rateLimit
private final int rateLimit- Mappings:
Namespace Name Mixin selector official l
Lsx;l:I
intermediary field_26344
Lnet/minecraft/class_5472;field_26344:I
named rateLimit
Lnet/minecraft/network/RateLimitedConnection;rateLimit:I
-
-
Constructor Details
-
RateLimitedConnection
public RateLimitedConnection(int rateLimit) - Mappings:
Namespace Name Mixin selector official <init>
Lsx;<init>(I)V
intermediary <init>
Lnet/minecraft/class_5472;<init>(I)V
named <init>
Lnet/minecraft/network/RateLimitedConnection;<init>(I)V
-
-
Method Details
-
updateStats
protected void updateStats()- Overrides:
updateStats
in classClientConnection
- Mappings:
Namespace Name Mixin selector official e
Lsm;e()V
intermediary method_30615
Lnet/minecraft/class_2535;method_30615()V
named updateStats
Lnet/minecraft/network/ClientConnection;updateStats()V
-