net.minecraft.network

public enum ConnectionProtocol

qw
net.minecraft.network.ConnectionProtocol
net.minecraft.class_2539
net.minecraft.network.NetworkState
net.minecraft.src.C_4965_
net.minecraft.network.EnumProtocol

Enum constant summary

Enum Constant
a
HANDSHAKING
field_20590
HANDSHAKING
HANDSHAKING
b
PLAY
field_20591
PLAY
PLAY
c
STATUS
field_20592
STATUS
STATUS
d
LOGIN
field_20593
LOGIN
LOGIN

Field summary

Modifier and TypeField
private static final int
e
MIN_PROTOCOL_ID
field_33281
NULL_PACKET_ID_OR_MIN_STATE_ID
f_178316_
private static final int
f
MAX_PROTOCOL_ID
field_33282
MAX_STATE_ID
f_178317_
private static final ConnectionProtocol[]
g
LOOKUP
field_11693
STATES
f_129571_
private static final Map<Class<? extends Packet<?>>, ConnectionProtocol>
h
PROTOCOL_BY_PACKET
field_11687
HANDLER_STATE_MAP
f_129572_
private final int
i
id
field_20594
stateId
f_129573_
private final Map<PacketFlow, ? extends ConnectionProtocol$PacketSet<?>>
j
flows
field_20595
packetHandlers
f_129574_

Constructor summary

ModifierConstructor
private (int p_129579_, ConnectionProtocol$ProtocolBuilder p_129580_)

Method summary

Modifier and TypeMethod
private static ConnectionProtocol$ProtocolBuilder
b()
protocol()
method_22308()
createPacketHandlerInitializer()
m_129600_()
public Integer
a(sp arg0, so<?> arg1)
getPacketId(PacketFlow arg0, Packet<?> arg1)
method_10781(class_2598 arg0, class_2596<?> arg1)
getPacketId(NetworkSide side, Packet<?> packet)
m_129597_(C_5029_ p_129599_, C_5028_<?> arg1)
public it.unimi.dsi.fastutil.ints.Int2ObjectMap<Class<? extends Packet<?>>>
a(sp arg0)
getPacketsByIds(PacketFlow arg0)
method_39498(class_2598 arg0)
getPacketIdToPacketMap(NetworkSide side)
m_195620_(C_5029_ arg0)
public Packet<?>
a(sp arg0, int arg1, qx arg2)
createPacket(PacketFlow arg0, int arg1, FriendlyByteBuf arg2)
method_10783(class_2598 arg0, int arg1, class_2540 arg2)
getPacketHandler(NetworkSide side, int packetId, PacketByteBuf buf)
m_178321_(C_5029_ p_178323_, int p_178324_, C_4983_ arg2)
public int
a()
getId()
method_10785()
getId()
m_129582_()
public static ConnectionProtocol
a(int arg0)
getById(int arg0)
method_10782(int arg0)
byId(int id)
m_129583_(int p_129584_)
public static ConnectionProtocol
a(so<?> arg0)
getProtocolForPacket(Packet<?> arg0)
method_10786(class_2596<?> arg0)
getPacketHandlerState(Packet<?> handler)
m_129592_(C_5028_<?> p_129593_)