Package net.minecraft.network
Class ConnectionProtocol.CodecData<T extends PacketListener>
java.lang.Object
net.minecraft.network.ConnectionProtocol.CodecData<T>
- All Implemented Interfaces:
BundlerInfo.Provider
- Enclosing class:
- ConnectionProtocol
public static class ConnectionProtocol.CodecData<T extends PacketListener>
extends Object
implements BundlerInfo.Provider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PacketFlow
private final ConnectionProtocol.PacketSet<T>
private final ConnectionProtocol
-
Constructor Summary
ConstructorDescriptionCodecData
(ConnectionProtocol p_297463_, PacketFlow p_300073_, ConnectionProtocol.PacketSet<T> p_301410_) -
Method Summary
Modifier and TypeMethodDescriptionPacket<?>
createPacket
(int p_298171_, FriendlyByteBuf p_299179_) flow()
boolean
isValidPacketType
(Packet<?> p_300854_) int
protocol()
-
Field Details
-
protocol
-
flow
-
packetSet
-
-
Constructor Details
-
CodecData
public CodecData(ConnectionProtocol p_297463_, PacketFlow p_300073_, ConnectionProtocol.PacketSet<T> p_301410_)
-
-
Method Details
-
protocol
-
flow
-
packetId
-
bundlerInfo
- Specified by:
bundlerInfo
in interfaceBundlerInfo.Provider
-
packetsByIds
-
createPacket
-
isValidPacketType
-