net.minecraft.server.network

public abstract class ServerCommonNetworkHandler

implements ServerCommonPacketListener

net.minecraft.server.network.ServerCommonPacketListenerImpl
net.minecraft.class_8609
net.minecraft.server.network.ServerCommonNetworkHandler

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_45014
LOGGER
public static final int
LATENCY_CHECK_INTERVAL
field_45011
KEEP_ALIVE_INTERVAL
private static final int
CLOSED_LISTENER_TIMEOUT
field_51342
TRANSITION_TIMEOUT
private static final Text
TIMEOUT_DISCONNECTION_MESSAGE
field_45015
TIMEOUT_TEXT
static final Text
DISCONNECT_UNEXPECTED_QUERY
field_48273
UNEXPECTED_QUERY_RESPONSE_TEXT
protected final MinecraftServer
server
field_45012
server
protected final ClientConnection
connection
field_45013
connection
private final boolean
transferred
field_48274
transferred
private long
keepAliveTime
field_45016
lastKeepAliveTime
private boolean
keepAlivePending
field_45017
waitingForKeepAlive
private long
keepAliveChallenge
field_45018
keepAliveId
private long
closedListenerTime
field_51343
transitionStartTime
private boolean
closed
field_51344
transitioning
private int
latency
field_45019
latency
private volatile boolean
suspendFlushingOnServerThread
field_45715
flushDisabled

Constructor summary

ModifierConstructor
public (MinecraftServer server, ClientConnection connection, ConnectedClientData clientData)

Method summary

Modifier and TypeMethod
private void
close()
method_59512()
markTransitionTime()
public void
onDisconnect(DisconnectionDetails details)
method_10839(class_9812 arg0)
onDisconnected(DisconnectionInfo arg0)
public void
onPacketError(Packet packet, Exception e)
method_59807(class_2596 arg0, Exception arg1)
onPacketException(Packet arg0, Exception arg1)
public void
handleKeepAlive(ServerboundKeepAlivePacket packet)
method_52393(class_2827 arg0)
onKeepAlive(KeepAliveC2SPacket arg0)
public void
handlePong(ServerboundPongPacket serverboundPongPacket)
method_52394(class_6374 arg0)
onPong(CommonPongC2SPacket arg0)
public void
handleCustomPayload(ServerboundCustomPayloadPacket packet)
method_52392(class_2817 arg0)
onCustomPayload(CustomPayloadC2SPacket arg0)
public void
handleCustomClickAction(ServerboundCustomClickActionPacket packet)
method_71953(class_11411 arg0)
onCustomClickAction(CustomClickActionC2SPacket arg0)
public void
handleResourcePackResponse(ServerboundResourcePackPacket packet)
method_52395(class_2856 arg0)
onResourcePackStatus(ResourcePackStatusC2SPacket arg0)
public void
handleCookieResponse(ServerboundCookieResponsePacket packet)
method_55851(class_9091 arg0)
onCookieResponse(CookieResponseC2SPacket arg0)
protected void
keepConnectionAlive()
method_52400()
baseTick()
private boolean
checkIfClosed(long now)
method_59511(long arg0)
checkTransitionTimeout(long time)
public void
suspendFlushing()
method_53046()
disableFlush()
public void
resumeFlushing()
method_53047()
enableFlush()
public void
send(Packet<?> packet)
method_14364(class_2596<?> arg0)
sendPacket(Packet<?> packet)
public void
send(Packet<?> packet, io.netty.channel.ChannelFutureListener listener)
method_52391(class_2596<?> arg0, io.netty.channel.ChannelFutureListener arg1)
send(Packet<?> packet, io.netty.channel.ChannelFutureListener arg1)
public void
disconnect(Component reason)
method_52396(class_2561 arg0)
disconnect(Text reason)
public void
disconnect(DisconnectionDetails details)
method_60673(class_9812 arg0)
disconnect(DisconnectionInfo disconnectionInfo)
protected boolean
isSingleplayerOwner()
method_52402()
isHost()
protected abstract com.mojang.authlib.GameProfile
playerProfile()
method_52403()
getProfile()
public com.mojang.authlib.GameProfile
getOwner()
method_52404()
getDebugProfile()
public int
latency()
method_52405()
getLatency()
protected ConnectedClientData
createCookie(ClientInformation clientInformation)
method_53825(class_8791 arg0)
createClientData(SyncedClientOptions syncedOptions)
private void
lambda$disconnect$0(DisconnectionDetails arg0)
method_60674(class_9812 arg0)
method_60674(DisconnectionInfo arg0)
private static String
lambda$send$0(Packet arg0)
method_52399(class_2596 arg0)
method_52399(Packet arg0)