Class RateLimitedConnection

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class RateLimitedConnection extends ClientConnection
A connection that disconnects from the backing netty channel if too many packets are received.
Mappings:
Namespace Name
official ok
intermediary net/minecraft/class_5472
named net/minecraft/network/RateLimitedConnection
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official g Lok;g:Lorg/apache/logging/log4j/Logger;
      intermediary field_26342 Lnet/minecraft/class_5472;field_26342:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/network/RateLimitedConnection;LOGGER:Lorg/apache/logging/log4j/Logger;
    • RATE_LIMIT_EXCEEDED_MESSAGE

      private static final Text RATE_LIMIT_EXCEEDED_MESSAGE
      Mappings:
      Namespace Name Mixin selector
      official h Lok;h:Los;
      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 i Lok;i: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> Lok;<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 class ClientConnection
      Mappings:
      Namespace Name Mixin selector
      official b Loe;b()V
      intermediary method_30615 Lnet/minecraft/class_2535;method_30615()V
      named updateStats Lnet/minecraft/network/ClientConnection;updateStats()V