Class ServerConnectionListener.LatencySimulator

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

static class ServerConnectionListener.LatencySimulator extends io.netty.channel.ChannelInboundHandlerAdapter
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
     

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
     
    private static io.netty.util.Timer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LatencySimulator​(int p_143593_, int p_143594_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    channelRead​(io.netty.channel.ChannelHandlerContext p_143601_, Object p_143602_)
     
    private void
    delayDownstream​(io.netty.channel.ChannelHandlerContext p_143596_, Object p_143597_)
     
    private void
    onTimeout​(io.netty.util.Timeout p_143599_)
     

    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

  • Constructor Details

    • LatencySimulator

      public LatencySimulator(int p_143593_, int p_143594_)
  • Method Details

    • channelRead

      public void channelRead(io.netty.channel.ChannelHandlerContext p_143601_, Object p_143602_)
      Specified by:
      channelRead in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
    • delayDownstream

      private void delayDownstream(io.netty.channel.ChannelHandlerContext p_143596_, Object p_143597_)
    • onTimeout

      private void onTimeout(io.netty.util.Timeout p_143599_)