net.minecraft.network

public enum NetworkProtocol

en
net.minecraft.class_1962
net.minecraft.network.NetworkProtocol
net.minecraft.network.EnumConnectionState

Enum constant summary

Enum Constant
a
field_8445
HANDSHAKE
HANDSHAKING
b
field_8446
PLAY
PLAY
c
field_8447
STATUS
STATUS
d
field_8448
LOGIN
LOGIN

Field summary

Modifier and TypeField
private static int
e
field_11566
MIN_ID
MIN_PROTOCOL_ID
private static int
f
field_11567
MAX_ID
MAX_PROTOCOL_ID
private static final NetworkProtocol[]
g
field_11568
BY_ID
STATES_BY_ID
private static final Map<Class<? extends Packet<?>>, NetworkProtocol>
h
field_8450
BY_PACKET
STATES_BY_CLASS
private final int
i
field_8451
id
id
private final Map<PacketFlow, com.google.common.collect.BiMap<Integer, Class<? extends Packet<?>>>>
j
field_11569
packets
directionMaps

Constructor summary

ModifierConstructor
private (int arg0)

Method summary

Modifier and TypeMethod
protected NetworkProtocol
a(fi arg0, Class<? extends fh<?>> arg1)
method_10599(class_2569 arg0, Class<? extends class_700<?>> arg1)
register(PacketFlow flow, Class<? extends Packet<?>> type)
registerPacket(EnumPacketDirection direction, Class<? extends Packet<?>> packetClass)
public Integer
a(fi arg0, fh<?> arg1)
method_10598(class_2569 arg0, class_700<?> arg1)
getPacketId(PacketFlow flow, Packet<?> packet)
getPacketId(EnumPacketDirection direction, Packet<?> packetIn)
public Packet<?>
a(fi arg0, int arg1)
method_10597(class_2569 arg0, int arg1)
createPacket(PacketFlow flow, int id)
getPacket(EnumPacketDirection direction, int packetId)
public int
a()
method_7418()
getId()
getId()
public static NetworkProtocol
a(int arg0)
method_7411(int arg0)
byId(int id)
getById(int stateId)
public static NetworkProtocol
a(fh<?> arg0)
method_7413(class_700<?> arg0)
byPacket(Packet<?> packet)
getFromPacket(Packet<?> packetIn)