Package net.minecraft.network
Class RateLimitedNetworkManager
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<IPacket<?>>
-
- net.minecraft.network.NetworkManager
-
- net.minecraft.network.RateLimitedNetworkManager
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class RateLimitedNetworkManager extends NetworkManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.network.NetworkManager
NetworkManager.QueuedPacket
-
-
Field Summary
Fields Modifier and Type Field Description private static ITextComponent
EXCEED_REASON
private static org.apache.logging.log4j.Logger
LOGGER
private int
rateLimitPacketsPerSecond
-
Fields inherited from class net.minecraft.network.NetworkManager
ATTRIBUTE_PROTOCOL, LOCAL_WORKER_GROUP, NETWORK_EPOLL_WORKER_GROUP, NETWORK_WORKER_GROUP, PACKET_MARKER, ROOT_MARKER
-
-
Constructor Summary
Constructors Constructor Description RateLimitedNetworkManager(int p_i242078_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
tickSecond()
-
Methods inherited from class net.minecraft.network.NetworkManager
channel, channelActive, channelInactive, channelRead0, connectToLocalServer, connectToServer, disconnect, exceptionCaught, getAverageReceivedPackets, getAverageSentPackets, getDirection, getDisconnectedReason, getPacketListener, getRemoteAddress, handleDisconnection, isConnected, isConnecting, isEncrypted, isMemoryConnection, send, send, setEncryptionKey, setListener, setProtocol, setReadOnly, setupCompression, tick
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
EXCEED_REASON
private static final ITextComponent EXCEED_REASON
-
rateLimitPacketsPerSecond
private final int rateLimitPacketsPerSecond
-
-
Method Detail
-
tickSecond
protected void tickSecond()
- Overrides:
tickSecond
in classNetworkManager
-
-