Package net.minecraft.server
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 ajh$a
intermediary net/minecraft/class_3242$class_5980
named net/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final List<ServerNetworkIo.DelayingChannelInboundHandler.Packet>
private static final Timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelRead
(ChannelHandlerContext ctx, Object msg) private void
delay
(ChannelHandlerContext ctx, Object msg) private void
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, 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
-
TIMER
- Mappings:
Namespace Name Mixin selector official a
Lajh$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
Lajh$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
Lajh$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
Lajh$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>
Lajh$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
- Specified by:
channelRead
in interfaceChannelInboundHandler
- Overrides:
channelRead
in classChannelInboundHandlerAdapter
- Mappings:
Namespace Name Mixin selector official channelRead
Lajh$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
- Mappings:
Namespace Name Mixin selector official a
Lajh$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
- Mappings:
Namespace Name Mixin selector official a
Lajh$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
-