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 named net/minecraft/network/RateLimitedConnectionintermediary net/minecraft/class_5472official wj
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Loggerprivate static final Textprivate final intFields inherited from class net.minecraft.network.ClientConnection
CLIENT_IO_GROUP, EPOLL_CLIENT_IO_GROUP, LOCAL_CLIENT_IO_GROUP, NETWORK_MARKER, NETWORK_PACKETS_MARKER, PACKET_RECEIVED_MARKER, PACKET_SENT_MARKER, packetSizeLogger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.network.ClientConnection
addFlowControlHandler, addHandlers, addLocalValidator, channelActive, channelInactive, channelRead0, connect, connect, connect, connect, connect, connectLocal, disconnect, disconnect, exceptionCaught, flush, getAddress, getAddressAsString, getAveragePacketsReceived, getAveragePacketsSent, getOppositeSide, getPacketListener, getSide, handleDisconnection, isChannelAbsent, isEncrypted, isLocal, isOpen, method_60926, resetPacketSizeLog, send, send, send, setCompressionThreshold, setInitialPacketListener, setupEncryption, submit, tick, transitionInbound, transitionOutbound, tryDisableAutoReadMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, 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
handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/network/RateLimitedConnection;LOGGER:Lorg/slf4j/Logger;intermediary field_26342Lnet/minecraft/class_5472;field_26342:Lorg/slf4j/Logger;official hLwj;h:Lorg/slf4j/Logger;
-
RATE_LIMIT_EXCEEDED_MESSAGE
- Mappings:
Namespace Name Mixin selector named RATE_LIMIT_EXCEEDED_MESSAGELnet/minecraft/network/RateLimitedConnection;RATE_LIMIT_EXCEEDED_MESSAGE:Lnet/minecraft/text/Text;intermediary field_26343Lnet/minecraft/class_5472;field_26343:Lnet/minecraft/class_2561;official iLwj;i:Lwz;
-
rateLimit
private final int rateLimit- Mappings:
Namespace Name Mixin selector named rateLimitLnet/minecraft/network/RateLimitedConnection;rateLimit:Iintermediary field_26344Lnet/minecraft/class_5472;field_26344:Iofficial jLwj;j:I
-
-
Constructor Details
-
RateLimitedConnection
public RateLimitedConnection(int rateLimit) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/RateLimitedConnection;<init>(I)Vintermediary <init>Lnet/minecraft/class_5472;<init>(I)Vofficial <init>Lwj;<init>(I)V
-
-
Method Details
-
updateStats
protected void updateStats()- Overrides:
updateStatsin classClientConnection- Mappings:
Namespace Name Mixin selector named updateStatsLnet/minecraft/network/ClientConnection;updateStats()Vintermediary method_30615Lnet/minecraft/class_2535;method_30615()Vofficial cLvt;c()V
-