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 aix$aintermediary net/minecraft/class_3242$class_5980named net/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final List<ServerNetworkIo.DelayingChannelInboundHandler.Packet>private static final Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(ChannelHandlerContext ctx, Object msg) private voiddelay(ChannelHandlerContext ctx, Object msg) private voidMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
TIMER
- Mappings:
Namespace Name Mixin selector official aLaix$a;a:Lio/netty/util/Timer;intermediary field_29772Lnet/minecraft/class_3242$class_5980;field_29772:Lio/netty/util/Timer;named TIMERLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;TIMER:Lio/netty/util/Timer;
-
baseDelay
private final int baseDelay- Mappings:
Namespace Name Mixin selector official bLaix$a;b:Iintermediary field_29773Lnet/minecraft/class_3242$class_5980;field_29773:Inamed baseDelayLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;baseDelay:I
-
extraDelay
private final int extraDelay- Mappings:
Namespace Name Mixin selector official cLaix$a;c:Iintermediary field_29774Lnet/minecraft/class_3242$class_5980;field_29774:Inamed extraDelayLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;extraDelay:I
-
packets
- Mappings:
Namespace Name Mixin selector official dLaix$a;d:Ljava/util/List;intermediary field_29775Lnet/minecraft/class_3242$class_5980;field_29775:Ljava/util/List;named packetsLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;packets:Ljava/util/List;
-
-
Constructor Details
-
DelayingChannelInboundHandler
public DelayingChannelInboundHandler(int baseDelay, int extraDelay) - Mappings:
Namespace Name Mixin selector official <init>Laix$a;<init>(II)Vintermediary <init>Lnet/minecraft/class_3242$class_5980;<init>(II)Vnamed <init>Lnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;<init>(II)V
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector official channelReadLaix$a;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Vintermediary channelReadLnet/minecraft/class_3242$class_5980;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Vnamed channelReadLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;channelRead(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
-
delay
- Mappings:
Namespace Name Mixin selector official aLaix$a;a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Vintermediary method_34880Lnet/minecraft/class_3242$class_5980;method_34880(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Vnamed delayLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;delay(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
-
forward
- Mappings:
Namespace Name Mixin selector official aLaix$a;a(Lio/netty/util/Timeout;)Vintermediary method_34881Lnet/minecraft/class_3242$class_5980;method_34881(Lio/netty/util/Timeout;)Vnamed forwardLnet/minecraft/server/ServerNetworkIo$DelayingChannelInboundHandler;forward(Lio/netty/util/Timeout;)V
-