Package net.minecraft.network.handler
Class PacketCodecDispatcher<B extends ByteBuf,V,T>
java.lang.Object
net.minecraft.network.handler.PacketCodecDispatcher<B,V,T>
- All Implemented Interfaces:
PacketCodec<B,
,V> PacketDecoder<B,
,V> PacketEncoder<B,
V>
public class PacketCodecDispatcher<B extends ByteBuf,V,T>
extends Object
implements PacketCodec<B,V>
- Mappings:
Namespace Name named net/minecraft/network/handler/PacketCodecDispatcher
intermediary net/minecraft/class_9136
official yw
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
PacketCodecDispatcher.Builder<B extends ByteBuf,
V, T> private static final record
Nested classes/interfaces inherited from interface net.minecraft.network.codec.PacketCodec
PacketCodec.ResultFunction<B,
S, T> -
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<PacketCodecDispatcher.PacketType<B, V, T>> private final Object2IntMap
<T> private static final int
-
Constructor Summary
ConstructorDescriptionPacketCodecDispatcher
(Function<V, ? extends T> packetIdGetter, List<PacketCodecDispatcher.PacketType<B, V, T>> packetTypes, Object2IntMap<T> typeToIndex) -
Method Summary
-
Field Details
-
UNKNOWN_PACKET_INDEX
private static final int UNKNOWN_PACKET_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named UNKNOWN_PACKET_INDEX
Lnet/minecraft/network/handler/PacketCodecDispatcher;UNKNOWN_PACKET_INDEX:I
intermediary field_48576
Lnet/minecraft/class_9136;field_48576:I
official a
Lyw;a:I
-
packetIdGetter
- Mappings:
Namespace Name Mixin selector named packetIdGetter
Lnet/minecraft/network/handler/PacketCodecDispatcher;packetIdGetter:Ljava/util/function/Function;
intermediary field_48577
Lnet/minecraft/class_9136;field_48577:Ljava/util/function/Function;
official b
Lyw;b:Ljava/util/function/Function;
-
packetTypes
- Mappings:
Namespace Name Mixin selector named packetTypes
Lnet/minecraft/network/handler/PacketCodecDispatcher;packetTypes:Ljava/util/List;
intermediary field_48578
Lnet/minecraft/class_9136;field_48578:Ljava/util/List;
official c
Lyw;c:Ljava/util/List;
-
typeToIndex
- Mappings:
Namespace Name Mixin selector named typeToIndex
Lnet/minecraft/network/handler/PacketCodecDispatcher;typeToIndex:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_48579
Lnet/minecraft/class_9136;field_48579:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
official d
Lyw;d:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
-
Constructor Details
-
PacketCodecDispatcher
PacketCodecDispatcher(Function<V, ? extends T> packetIdGetter, List<PacketCodecDispatcher.PacketType<B, V, T>> packetTypes, Object2IntMap<T> typeToIndex) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/handler/PacketCodecDispatcher;<init>(Ljava/util/function/Function;Ljava/util/List;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
intermediary <init>
Lnet/minecraft/class_9136;<init>(Ljava/util/function/Function;Ljava/util/List;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
official <init>
Lyw;<init>(Ljava/util/function/Function;Ljava/util/List;Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
-
-
Method Details
-
decode
- Specified by:
decode
in interfacePacketDecoder<B extends ByteBuf,
V> - Mappings:
Namespace Name Mixin selector named decode
Lnet/minecraft/network/handler/PacketCodecDispatcher;decode(Lio/netty/buffer/ByteBuf;)Ljava/lang/Object;
intermediary method_56425
Lnet/minecraft/class_9136;method_56425(Lio/netty/buffer/ByteBuf;)Ljava/lang/Object;
official a
Lyw;a(Lio/netty/buffer/ByteBuf;)Ljava/lang/Object;
-
encode
- Specified by:
encode
in interfacePacketEncoder<B extends ByteBuf,
V> - Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/network/handler/PacketCodecDispatcher;encode(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;)V
intermediary method_56426
Lnet/minecraft/class_9136;method_56426(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;)V
official a
Lyw;a(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;)V
-
builder
public static <B extends ByteBuf,V, PacketCodecDispatcher.Builder<B,T> V, builderT> (Function<V, ? extends T> packetIdGetter) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/network/handler/PacketCodecDispatcher;builder(Ljava/util/function/Function;)Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;
intermediary method_56427
Lnet/minecraft/class_9136;method_56427(Ljava/util/function/Function;)Lnet/minecraft/class_9136$class_9137;
official a
Lyw;a(Ljava/util/function/Function;)Lyw$a;
-