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 named net/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler
intermediary net/minecraft/class_3242$class_5980
official arl$a
-
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 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
- Specified by:
channelRead
in interfaceChannelInboundHandler
- Overrides:
channelRead
in classChannelInboundHandlerAdapter
- 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
- 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
- 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
-