Class ServerNetworkIo.DelayingChannelInboundHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
net.minecraft.server.ServerNetworkIo.DelayingChannelInboundHandler
All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
Enclosing class:
ServerNetworkIo

private static class ServerNetworkIo.DelayingChannelInboundHandler extends ChannelInboundHandlerAdapter
A channel in-bound handler that only forwards received messages to the next channel in-bound handler in the channel pipeline after a random delay between baseDelay and baseDelay + extraDelay milliseconds.
API Note:
This may be used to simulate a laggy network environment.
Mappings:
Namespace Name
named net/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler
intermediary net/minecraft/class_3242$class_5980
official arl$a
  • Field Details

    • TIMER

      private static final Timer TIMER
      Mappings:
      Namespace Name Mixin selector
      named TIMER Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;TIMER:Lio/netty/util/Timer;
      intermediary field_29772 Lnet/minecraft/class_3242$class_5980;field_29772:Lio/netty/util/Timer;
      official a Larl$a;a:Lio/netty/util/Timer;
    • baseDelay

      private final int baseDelay
      Mappings:
      Namespace Name Mixin selector
      named baseDelay Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;baseDelay:I
      intermediary field_29773 Lnet/minecraft/class_3242$class_5980;field_29773:I
      official b Larl$a;b:I
    • extraDelay

      private final int extraDelay
      Mappings:
      Namespace Name Mixin selector
      named extraDelay Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;extraDelay:I
      intermediary field_29774 Lnet/minecraft/class_3242$class_5980;field_29774:I
      official c Larl$a;c:I
    • packets

      Mappings:
      Namespace Name Mixin selector
      named packets Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;packets:Ljava/util/List;
      intermediary field_29775 Lnet/minecraft/class_3242$class_5980;field_29775:Ljava/util/List;
      official d Larl$a;d:Ljava/util/List;
  • Constructor Details

    • DelayingChannelInboundHandler

      public DelayingChannelInboundHandler(int baseDelay, int extraDelay)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;<init>(II)V
      intermediary <init> Lnet/minecraft/class_3242$class_5980;<init>(II)V
      official <init> Larl$a;<init>(II)V
  • Method Details

    • channelRead

      public void channelRead(ChannelHandlerContext ctx, Object msg)
      Specified by:
      channelRead in interface ChannelInboundHandler
      Overrides:
      channelRead in class ChannelInboundHandlerAdapter
      Mappings:
      Namespace Name Mixin selector
      named channelRead Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      intermediary channelRead Lnet/minecraft/class_3242$class_5980;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      official channelRead Larl$a;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
    • delay

      private void delay(ChannelHandlerContext ctx, Object msg)
      Mappings:
      Namespace Name Mixin selector
      named delay Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;delay(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      intermediary method_34880 Lnet/minecraft/class_3242$class_5980;method_34880(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
      official a Larl$a;a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
    • forward

      private void forward(Timeout timeout)
      Mappings:
      Namespace Name Mixin selector
      named forward Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;forward(Lio/netty/util/Timeout;)V
      intermediary method_34881 Lnet/minecraft/class_3242$class_5980;method_34881(Lio/netty/util/Timeout;)V
      official a Larl$a;a(Lio/netty/util/Timeout;)V