Class IdDispatchCodec<B extends io.netty.buffer.ByteBuf, V, T>
java.lang.Object
net.minecraft.network.codec.IdDispatchCodec<B,V,T>
- All Implemented Interfaces:
StreamCodec<B,V>, StreamDecoder<B, V>, StreamEncoder<B, V>
public class IdDispatchCodec<B extends io.netty.buffer.ByteBuf, V, T>
extends Object
implements StreamCodec<B,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdDispatchCodec.Builder<B extends io.netty.buffer.ByteBuf, V, T>static interfaceprivate static final recordNested classes/interfaces inherited from interface StreamCodec
StreamCodec.CodecOperation<B,S, T> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIdDispatchCodec(Function<V, ? extends T> typeGetter, List<IdDispatchCodec.Entry<B, V, T>> byId, it.unimi.dsi.fastutil.objects.Object2IntMap<T> toId) -
Method Summary
-
Field Details
-
UNKNOWN_TYPE
private static final int UNKNOWN_TYPE- See Also:
-
typeGetter
-
byId
-
toId
-
-
Constructor Details
-
IdDispatchCodec
-
-
Method Details
-
decode
-
encode
-
builder
public static <B extends io.netty.buffer.ByteBuf, V, T> IdDispatchCodec.Builder<B,V, builderT> (Function<V, ? extends T> typeGetter)
-