net.minecraft.network.codec

public class IdDispatchCodec<B extends io.netty.buffer.ByteBuf, V, T>

implements StreamCodec<B, V>

yv
net.minecraft.network.codec.IdDispatchCodec
net.minecraft.class_9136
net.minecraft.unmapped.C_ifijxdsf
net.minecraft.network.handler.PacketCodecDispatcher
net.minecraft.network.phase.PacketDispatchCodec

Field summary

Modifier and TypeField
private static final int
a
UNKNOWN_TYPE
field_48576
f_xqrsjfzh
UNKNOWN_PACKET_INDEX
UNKNOWN
private final Function<V, ? extends T>
b
typeGetter
field_48577
f_lcabfyee
packetIdGetter
typeGetter
private final List<IdDispatchCodec$Entry<B, V, T>>
c
byId
field_48578
f_lwzwagjm
packetTypes
entriesById
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T>
d
toId
field_48579
f_zlozbuic
typeToIndex
typeToId

Constructor summary

ModifierConstructor
(Function<V, ? extends T> packetIdGetter, List<IdDispatchCodec$Entry<B, V, T>> packetTypes, it.unimi.dsi.fastutil.objects.Object2IntMap<T> typeToIndex)

Method summary

Modifier and TypeMethod
public V
a(B arg0)
decode(B arg0)
method_56425(B arg0)
m_bnncbveh(B arg0)
decode(B arg0)
decode(B buf)
public void
a(B arg0, V arg1)
encode(B arg0, V arg1)
method_56426(B arg0, V arg1)
m_vhgivpli(B arg0, V arg1)
encode(B arg0, V arg1)
encode(B buf, V arg1)
public static <B extends io.netty.buffer.ByteBuf, V, T> IdDispatchCodec$Builder<B, V, T>
a(Function<V, ? extends T> arg0)
builder(Function<V, ? extends T> arg0)
method_56427(Function<V, ? extends T> arg0)
m_nlurorlh(Function<V, ? extends T> arg0)
builder(Function<V, ? extends T> packetIdGetter)
builder(Function<V, ? extends T> typeGetter)