net.minecraft.network

class ConnectionProtocol$PacketSet<T extends PacketListener>

px$a
net.minecraft.network.ConnectionProtocol$PacketSet
net.minecraft.class_2539$class_4532
net.minecraft.network.NetworkState$PacketHandler
net.minecraft.src.C_4965_$C_4967_
net.minecraft.network.EnumProtocol$a

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_36381
field_36381
f_202573_
final it.unimi.dsi.fastutil.objects.Object2IntMap<Class<? extends Packet<T>>>
b
classToId
field_20596
packetIds
f_129604_
private final List<Function<FriendlyByteBuf, ? extends Packet<T>>>
c
idToDeserializer
field_20597
packetFactories
f_178326_

Constructor summary

ModifierConstructor
()

Method summary

Modifier and TypeMethod
public <P extends Packet<T>> ConnectionProtocol$PacketSet<T>
a(Class<P> arg0, Function<py, P> arg1)
addPacket(Class<P> arg0, Function<FriendlyByteBuf, P> arg1)
method_22313(Class<P> arg0, Function<class_2540, P> arg1)
register(Class<P> type, Function<PacketByteBuf, P> packetFactory)
m_178330_(Class<P> p_178332_, Function<C_4983_, P> arg1)
public Integer
a(Class<?> arg0)
getId(Class<?> arg0)
method_22312(Class<?> arg0)
getId(Class<?> packet)
m_129614_(Class<?> arg0)
public Packet<?>
a(int arg0, py arg1)
createPacket(int arg0, FriendlyByteBuf arg1)
method_22310(int arg0, class_2540 arg1)
createPacket(int id, PacketByteBuf buf)
m_178327_(int p_178329_, C_4983_ arg1)
public Iterable<Class<? extends Packet<?>>>
a()
getAllPackets()
method_22309()
getPacketTypes()
m_129609_()