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
official agg$a
intermediary net/minecraft/class_3242$class_5980
named net/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler
  • Field Details

    • TIMER

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

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

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

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

    • DelayingChannelInboundHandler

      public DelayingChannelInboundHandler(int baseDelay, int extraDelay)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagg$a;<init>(II)V
      intermediary <init> Lnet/minecraft/class_3242$class_5980;<init>(II)V
      named <init> Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;<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
      official channelRead Lagg$a;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
      named channelRead Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
    • delay

      private void delay(ChannelHandlerContext ctx, Object msg)
      Mappings:
      Namespace Name Mixin selector
      official a Lagg$a;a(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
      named delay Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;delay(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
    • forward

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