net.minecraft.network

class ConnectionProtocol$PacketSet<T extends PacketListener>

sr$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
LOGGER
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_
private BundlerInfo
d
bundlerInfo
field_41867
bundler
f_263664_
private final Set<Class<? extends Packet<T>>>
e
extraClasses
field_41868
bundlePacketTypes
f_263747_

Constructor summary

ModifierConstructor
()

Method summary

Modifier and TypeMethod
public <P extends Packet<T>> ConnectionProtocol$PacketSet<T>
a(Class<P> arg0, Function<ss, 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 <P extends BundlePacket<T>> ConnectionProtocol$PacketSet<T>
b(Class<P> arg0, Function<Iterable<vb<T>>, P> arg1)
withBundlePacket(Class<P> arg0, Function<Iterable<Packet<T>>, P> arg1)
method_48317(Class<P> arg0, Function<Iterable<class_2596<T>>, P> arg1)
registerBundlePacket(Class<P> bundlePacketType, Function<Iterable<Packet<T>>, P> bundleFunction)
m_264543_(Class<P> p_265591_, Function<Iterable<C_5028_<T>>, P> arg1)
public int
a(Class<?> arg0)
getId(Class<?> arg0)
method_22312(Class<?> arg0)
getId(Class<?> packet)
m_264516_(Class<?> arg0)
public Packet<?>
a(int arg0, ss 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 void
a(Consumer<Class<? extends vb<?>>> arg0)
listAllPackets(Consumer<Class<? extends Packet<?>>> arg0)
method_48314(Consumer<Class<? extends class_2596<?>>> arg0)
forEachPacketType(Consumer<Class<? extends Packet<?>>> consumer)
m_264538_(Consumer<Class<? extends C_5028_<?>>> arg0)
public BundlerInfo
a()
bundlerInfo()
method_48313()
getBundler()
m_264507_()