Package net.minecraft.network.protocol
Class ProtocolCodecBuilder<B extends io.netty.buffer.ByteBuf,L extends PacketListener>
java.lang.Object
net.minecraft.network.protocol.ProtocolCodecBuilder<B,L>
public class ProtocolCodecBuilder<B extends io.netty.buffer.ByteBuf,L extends PacketListener>
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IdDispatchCodec.Builder
<B, Packet<? super L>, PacketType<? extends Packet<? super L>>> private final PacketFlow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Packet<? super L>>
ProtocolCodecBuilder<B, L> add
(PacketType<T> p_331162_, StreamCodec<? super B, T> p_335909_) StreamCodec
<B, Packet<? super L>> build()
-
Field Details
-
dispatchBuilder
private final IdDispatchCodec.Builder<B extends io.netty.buffer.ByteBuf,Packet<? super L extends PacketListener>, dispatchBuilderPacketType<? extends Packet<? super L extends PacketListener>>> -
flow
-
-
Constructor Details
-
ProtocolCodecBuilder
-
-
Method Details
-
add
public <T extends Packet<? super L>> ProtocolCodecBuilder<B,L> add(PacketType<T> p_331162_, StreamCodec<? super B, T> p_335909_) -
build
-