net.minecraft.network.protocol

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

aab
net.minecraft.network.protocol.ProtocolInfoBuilder
net.minecraft.class_9147
net.minecraft.unmapped.C_xadnelzj
net.minecraft.network.NetworkStateBuilder
net.minecraft.network.PhaseConfiguration
net.minecraft.src.C_313614_
net.minecraft.network.protocol.ProtocolInfoBuilder

Field summary

Modifier and TypeField
private final ConnectionProtocol
a
protocol
field_48616
f_lnnesytj
type
state
f_317112_
private final PacketFlow
b
flow
field_48617
f_ymmjxtxh
side
side
f_315448_
private final List<ProtocolInfoBuilder$CodecEntry<T, ?, B>>
c
codecs
field_48618
f_rqqleebu
packetTypes
f_314904_
private BundlerInfo
d
bundlerInfo
field_48619
f_rhurybko
bundleHandler
bundleHandler
f_315466_

Constructor summary

ModifierConstructor
public (ConnectionProtocol type, PacketFlow side)

Method summary

Modifier and TypeMethod
public <P extends Packet<? super T>> ProtocolInfoBuilder<T, B>
a(zy<P> arg0, zn<? 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)
m_jwscilku(C_usugyqlb<P> arg0, C_qsrmwluu<? super B, P> arg1)
add(PacketType<P> id, PacketCodec<? super B, P> codec)
add(PacketType<P> type, PacketCodec<? super B, P> codec)
m_322062_(C_313403_<P> p_333531_, C_313866_<? super B, P> arg1)
public <P extends BundlePacket<? super T>, D extends BundleDelimiterPacket<? super T>> ProtocolInfoBuilder<T, B>
a(zy<P> arg0, Function<Iterable<zw<? 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)
m_rsssfptu(C_usugyqlb<P> arg0, Function<Iterable<C_zyjtrjrl<? super T>>, P> arg1, D arg2)
addBundle(PacketType<P> id, Function<Iterable<Packet<? super T>>, P> bundler, D splitter)
m_rsssfptu(PacketType<P> type, Function<Iterable<Packet<? super T>>, P> function, D splitterPacket)
m_319612_(C_313403_<P> p_331716_, Function<Iterable<C_5028_<? super T>>, P> p_328432_, D arg2)
private StreamCodec<io.netty.buffer.ByteBuf, Packet<? super T>>
a(Function<io.netty.buffer.ByteBuf, B> arg0, List<aab$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)
m_buknizwk(Function<io.netty.buffer.ByteBuf, B> arg0, List<C_xadnelzj$C_vmidayvn<T, ?, B>> arg1)
createCodec(Function<io.netty.buffer.ByteBuf, B> bufUpgrader, List<NetworkStateBuilder$PacketType<T, ?, B>> packetTypes)
m_320976_(Function<io.netty.buffer.ByteBuf, B> p_329135_, List<C_313614_$C_313283_<T, ?, B>> arg1)
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)
m_jzxwafbg(Function<io.netty.buffer.ByteBuf, B> arg0)
build(Function<io.netty.buffer.ByteBuf, B> bufUpgrader)
m_319209_(Function<io.netty.buffer.ByteBuf, B> arg0)
public ProtocolInfo$Unbound<T, B>
a()
buildUnbound()
method_56447()
m_vfbxcaap()
buildFactory()
m_318838_()
private static <L extends PacketListener> ProtocolInfo<L>
a(wl arg0, zx arg1, Consumer<aab<L, wm>> arg2)
protocol(ConnectionProtocol arg0, PacketFlow arg1, Consumer<ProtocolInfoBuilder<L, FriendlyByteBuf>> arg2)
method_56452(class_2539 arg0, class_2598 arg1, Consumer<class_9147<L, class_2540>> arg2)
m_yrxfjash(C_kxdobmrm arg0, C_exeqxqdd arg1, Consumer<C_xadnelzj<L, C_idfydwco>> arg2)
build(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, PacketByteBuf>> registrar)
m_yrxfjash(NetworkState state, NetworkSide side, Consumer<PhaseConfiguration<L, PacketByteBuf>> consumer)
m_321517_(C_4965_ p_334123_, C_5029_ p_327838_, Consumer<C_313614_<L, C_4983_>> p_327993_)
public static <T extends ServerboundPacketListener> ProtocolInfo<T>
a(wl arg0, Consumer<aab<T, wm>> arg1)
serverboundProtocol(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, FriendlyByteBuf>> arg1)
method_56451(class_2539 arg0, Consumer<class_9147<T, class_2540>> arg1)
m_hriadiud(C_kxdobmrm arg0, Consumer<C_xadnelzj<T, C_idfydwco>> arg1)
c2s(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar)
createServer(NetworkState state, Consumer<PhaseConfiguration<T, PacketByteBuf>> consumer)
m_323394_(C_4965_ p_331618_, Consumer<C_313614_<T, C_4983_>> p_330318_)
public static <T extends ClientboundPacketListener> ProtocolInfo<T>
b(wl arg0, Consumer<aab<T, wm>> arg1)
clientboundProtocol(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, FriendlyByteBuf>> arg1)
method_56455(class_2539 arg0, Consumer<class_9147<T, class_2540>> arg1)
m_ljxmvorc(C_kxdobmrm arg0, Consumer<C_xadnelzj<T, C_idfydwco>> arg1)
s2c(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar)
createClient(NetworkState state, Consumer<PhaseConfiguration<T, PacketByteBuf>> consumer)
m_322020_(C_4965_ p_329688_, Consumer<C_313614_<T, C_4983_>> p_332900_)
private static <L extends PacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<L, B>
b(wl arg0, zx arg1, Consumer<aab<L, B>> arg2)
protocolUnbound(ConnectionProtocol arg0, PacketFlow arg1, Consumer<ProtocolInfoBuilder<L, B>> arg2)
method_56456(class_2539 arg0, class_2598 arg1, Consumer<class_9147<L, B>> arg2)
m_blgriwwz(C_kxdobmrm arg0, C_exeqxqdd arg1, Consumer<C_xadnelzj<L, B>> arg2)
buildFactory(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar)
m_blgriwwz(NetworkState state, NetworkSide side, Consumer<PhaseConfiguration<L, B>> consumer)
m_319891_(C_4965_ p_330235_, C_5029_ p_335045_, Consumer<C_313614_<L, B>> p_329753_)
public static <T extends ServerboundPacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<T, B>
c(wl arg0, Consumer<aab<T, B>> arg1)
serverboundProtocolUnbound(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, B>> arg1)
method_56457(class_2539 arg0, Consumer<class_9147<T, B>> arg1)
m_ngjqdjzr(C_kxdobmrm arg0, Consumer<C_xadnelzj<T, B>> arg1)
c2sFactory(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)
m_ngjqdjzr(NetworkState state, Consumer<PhaseConfiguration<T, B>> consumer)
m_321568_(C_4965_ p_330435_, Consumer<C_313614_<T, B>> p_333183_)
public static <T extends ClientboundPacketListener, B extends io.netty.buffer.ByteBuf> ProtocolInfo$Unbound<T, B>
d(wl arg0, Consumer<aab<T, B>> arg1)
clientboundProtocolUnbound(ConnectionProtocol arg0, Consumer<ProtocolInfoBuilder<T, B>> arg1)
method_56458(class_2539 arg0, Consumer<class_9147<T, B>> arg1)
m_zombizqz(C_kxdobmrm arg0, Consumer<C_xadnelzj<T, B>> arg1)
s2cFactory(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)
m_zombizqz(NetworkState state, Consumer<PhaseConfiguration<T, B>> consumer)
m_323393_(C_4965_ p_330385_, Consumer<C_313614_<T, B>> p_330670_)