net.minecraft.network.protocol

public class ProtocolInfoBuilder<T extends PacketListener, B extends io.netty.buffer.ByteBuf>

zb
net.minecraft.network.protocol.ProtocolInfoBuilder
net.minecraft.class_9147
net.minecraft.network.NetworkStateBuilder
net.minecraft.network.protocol.ProtocolInfoBuilder

Field summary

Modifier and TypeField
final ConnectionProtocol
a
protocol
field_48616
type
final PacketFlow
b
flow
field_48617
side
private final List<ProtocolInfoBuilder$CodecEntry<T, ?, B>>
c
codecs
field_48618
packetTypes
private BundlerInfo
d
bundlerInfo
field_48619
bundleHandler

Constructor summary

ModifierConstructor
public (ConnectionProtocol type, PacketFlow side)

Method summary

Modifier and TypeMethod
public <P extends Packet<? super T>> ProtocolInfoBuilder<T, B>
a(yy<P> arg0, yn<? super B, P> arg1)
addPacket(PacketType<P> arg0, StreamCodec<? super B, P> arg1)
method_56454(class_9145<P> arg0, class_9139<? super B, P> arg1)
add(PacketType<P> id, PacketCodec<? super B, P> codec)
public <P extends BundlePacket<? super T>, D extends BundleDelimiterPacket<? super T>> ProtocolInfoBuilder<T, B>
a(yy<P> arg0, Function<Iterable<yw<? super T>>, P> arg1, D arg2)
withBundlePacket(PacketType<P> arg0, Function<Iterable<Packet<? super T>>, P> arg1, D arg2)
method_56453(class_9145<P> arg0, Function<Iterable<class_2596<? super T>>, P> arg1, D arg2)
addBundle(PacketType<P> id, Function<Iterable<Packet<? super T>>, P> bundler, D splitter)
StreamCodec<io.netty.buffer.ByteBuf, Packet<? super T>>
a(Function<io.netty.buffer.ByteBuf, B> arg0, List<zb$a<T, ?, B>> arg1)
buildPacketCodec(Function<io.netty.buffer.ByteBuf, B> arg0, List<ProtocolInfoBuilder$CodecEntry<T, ?, B>> arg1)
method_56450(Function<io.netty.buffer.ByteBuf, B> arg0, List<class_9147$class_9148<T, ?, B>> arg1)
createCodec(Function<io.netty.buffer.ByteBuf, B> bufUpgrader, List<NetworkStateBuilder$PacketType<T, ?, B>> packetTypes)
public ProtocolInfo<T>
a(Function<io.netty.buffer.ByteBuf, B> arg0)
build(Function<io.netty.buffer.ByteBuf, B> arg0)
method_56449(Function<io.netty.buffer.ByteBuf, B> arg0)
build(Function<io.netty.buffer.ByteBuf, B> bufUpgrader)
public ProtocolInfo$Unbound<T, B>
a()
buildUnbound()
method_56447()
buildFactory()
private static <L extends PacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<L, B>
a(vj arg0, yx arg1, Consumer<zb<L, B>> arg2)
protocol(ConnectionProtocol arg0, PacketFlow arg1, Consumer<ProtocolInfoBuilder<L, B>> arg2)
method_56452(class_2539 arg0, class_2598 arg1, Consumer<class_9147<L, B>> arg2)
build(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar)
public static <T extends ServerboundPacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<T, B>
a(vj arg0, Consumer<zb<T, B>> arg1)
serverboundProtocol(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, B>> arg1)
method_56451(class_2539 arg0, Consumer<class_9147<T, B>> arg1)
c2s(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)
public static <T extends ClientboundPacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<T, B>
b(vj arg0, Consumer<zb<T, B>> arg1)
clientboundProtocol(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, B>> arg1)
method_56455(class_2539 arg0, Consumer<class_9147<T, B>> arg1)
s2c(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)