Package net.minecraft.network
Class NetworkStateBuilder<T extends PacketListener,B extends ByteBuf>
java.lang.Object
net.minecraft.network.NetworkStateBuilder<T,B>
- Mappings:
Namespace Name named net/minecraft/network/NetworkStateBuilder
intermediary net/minecraft/class_9147
official zk
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final record
NetworkStateBuilder.PacketType<T extends PacketListener,
P extends Packet<? super T>, B extends ByteBuf> -
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable PacketBundleHandler
private final List
<NetworkStateBuilder.PacketType<T, ?, B>> private final NetworkSide
private final NetworkPhase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<P extends Packet<? super T>>
NetworkStateBuilder<T, B> add
(PacketType<P> id, PacketCodec<? super B, P> codec) <P extends BundlePacket<? super T>,
D extends BundleSplitterPacket<? super T>>
NetworkStateBuilder<T, B> private static <L extends PacketListener>
NetworkState<L> build
(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, PacketByteBuf>> registrar) private static <L extends PacketListener,
B extends ByteBuf>
NetworkState.Factory<L, B> buildFactory
(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar) static <T extends ServerPacketListener>
NetworkState<T> c2s
(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) static <T extends ServerPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> c2sFactory
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) private PacketCodec
<ByteBuf, Packet<? super T>> createCodec
(Function<ByteBuf, B> bufUpgrader, List<NetworkStateBuilder.PacketType<T, ?, B>> packetTypes) static <T extends ClientPacketListener>
NetworkState<T> s2c
(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) static <T extends ClientPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> s2cFactory
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector named type
Lnet/minecraft/network/NetworkStateBuilder;type:Lnet/minecraft/network/NetworkPhase;
intermediary field_48616
Lnet/minecraft/class_9147;field_48616:Lnet/minecraft/class_2539;
official a
Lzk;a:Lvt;
-
side
- Mappings:
Namespace Name Mixin selector named side
Lnet/minecraft/network/NetworkStateBuilder;side:Lnet/minecraft/network/NetworkSide;
intermediary field_48617
Lnet/minecraft/class_9147;field_48617:Lnet/minecraft/class_2598;
official b
Lzk;b:Lzg;
-
packetTypes
private final List<NetworkStateBuilder.PacketType<T extends PacketListener,?, packetTypesB extends ByteBuf>> - Mappings:
Namespace Name Mixin selector named packetTypes
Lnet/minecraft/network/NetworkStateBuilder;packetTypes:Ljava/util/List;
intermediary field_48618
Lnet/minecraft/class_9147;field_48618:Ljava/util/List;
official c
Lzk;c:Ljava/util/List;
-
bundleHandler
- Mappings:
Namespace Name Mixin selector named bundleHandler
Lnet/minecraft/network/NetworkStateBuilder;bundleHandler:Lnet/minecraft/network/handler/PacketBundleHandler;
intermediary field_48619
Lnet/minecraft/class_9147;field_48619:Lnet/minecraft/class_8039;
official d
Lzk;d:Lze;
-
-
Constructor Details
-
NetworkStateBuilder
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/NetworkStateBuilder;<init>(Lnet/minecraft/network/NetworkPhase;Lnet/minecraft/network/NetworkSide;)V
intermediary <init>
Lnet/minecraft/class_9147;<init>(Lnet/minecraft/class_2539;Lnet/minecraft/class_2598;)V
official <init>
Lzk;<init>(Lvt;Lzg;)V
-
-
Method Details
-
add
public <P extends Packet<? super T>> NetworkStateBuilder<T,B> add(PacketType<P> id, PacketCodec<? super B, P> codec) - Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/network/NetworkStateBuilder;add(Lnet/minecraft/network/packet/PacketType;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/NetworkStateBuilder;
intermediary method_56454
Lnet/minecraft/class_9147;method_56454(Lnet/minecraft/class_9145;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9147;
official a
Lzk;a(Lzh;Lyw;)Lzk;
-
addBundle
public <P extends BundlePacket<? super T>,D extends BundleSplitterPacket<? super T>> NetworkStateBuilder<T,B> addBundle(PacketType<P> id, Function<Iterable<Packet<? super T>>, P> bundler, D splitter) - Mappings:
Namespace Name Mixin selector named addBundle
Lnet/minecraft/network/NetworkStateBuilder;addBundle(Lnet/minecraft/network/packet/PacketType;Ljava/util/function/Function;Lnet/minecraft/network/packet/BundleSplitterPacket;)Lnet/minecraft/network/NetworkStateBuilder;
intermediary method_56453
Lnet/minecraft/class_9147;method_56453(Lnet/minecraft/class_9145;Ljava/util/function/Function;Lnet/minecraft/class_8037;)Lnet/minecraft/class_9147;
official a
Lzk;a(Lzh;Ljava/util/function/Function;Lzc;)Lzk;
-
createCodec
private PacketCodec<ByteBuf,Packet<? super T>> createCodec(Function<ByteBuf, B> bufUpgrader, List<NetworkStateBuilder.PacketType<T, ?, B>> packetTypes) - Mappings:
Namespace Name Mixin selector named createCodec
Lnet/minecraft/network/NetworkStateBuilder;createCodec(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/network/codec/PacketCodec;
intermediary method_56450
Lnet/minecraft/class_9147;method_56450(Ljava/util/function/Function;Ljava/util/List;)Lnet/minecraft/class_9139;
official a
Lzk;a(Ljava/util/function/Function;Ljava/util/List;)Lyw;
-
build
- Mappings:
Namespace Name Mixin selector named build
Lnet/minecraft/network/NetworkStateBuilder;build(Ljava/util/function/Function;)Lnet/minecraft/network/NetworkState;
intermediary method_56449
Lnet/minecraft/class_9147;method_56449(Ljava/util/function/Function;)Lnet/minecraft/class_9127;
official a
Lzk;a(Ljava/util/function/Function;)Lwg;
-
buildFactory
- Mappings:
Namespace Name Mixin selector named buildFactory
Lnet/minecraft/network/NetworkStateBuilder;buildFactory()Lnet/minecraft/network/NetworkState$Factory;
intermediary method_56447
Lnet/minecraft/class_9147;method_56447()Lnet/minecraft/class_9127$class_9128;
official a
Lzk;a()Lwg$a;
-
build
private static <L extends PacketListener> NetworkState<L> build(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, PacketByteBuf>> registrar) - Mappings:
Namespace Name Mixin selector named build
Lnet/minecraft/network/NetworkStateBuilder;build(Lnet/minecraft/network/NetworkPhase;Lnet/minecraft/network/NetworkSide;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState;
intermediary method_56452
Lnet/minecraft/class_9147;method_56452(Lnet/minecraft/class_2539;Lnet/minecraft/class_2598;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127;
official a
Lzk;a(Lvt;Lzg;Ljava/util/function/Consumer;)Lwg;
-
c2s
public static <T extends ServerPacketListener> NetworkState<T> c2s(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) - Mappings:
Namespace Name Mixin selector named c2s
Lnet/minecraft/network/NetworkStateBuilder;c2s(Lnet/minecraft/network/NetworkPhase;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState;
intermediary method_56451
Lnet/minecraft/class_9147;method_56451(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127;
official a
Lzk;a(Lvt;Ljava/util/function/Consumer;)Lwg;
-
s2c
public static <T extends ClientPacketListener> NetworkState<T> s2c(NetworkPhase type, Consumer<NetworkStateBuilder<T, PacketByteBuf>> registrar) - Mappings:
Namespace Name Mixin selector named s2c
Lnet/minecraft/network/NetworkStateBuilder;s2c(Lnet/minecraft/network/NetworkPhase;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState;
intermediary method_56455
Lnet/minecraft/class_9147;method_56455(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127;
official b
Lzk;b(Lvt;Ljava/util/function/Consumer;)Lwg;
-
buildFactory
private static <L extends PacketListener,B extends ByteBuf> NetworkState.Factory<L,B> buildFactory(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar) - Mappings:
Namespace Name Mixin selector named buildFactory
Lnet/minecraft/network/NetworkStateBuilder;buildFactory(Lnet/minecraft/network/NetworkPhase;Lnet/minecraft/network/NetworkSide;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState$Factory;
intermediary method_56456
Lnet/minecraft/class_9147;method_56456(Lnet/minecraft/class_2539;Lnet/minecraft/class_2598;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127$class_9128;
official b
Lzk;b(Lvt;Lzg;Ljava/util/function/Consumer;)Lwg$a;
-
c2sFactory
public static <T extends ServerPacketListener,B extends ByteBuf> NetworkState.Factory<T,B> c2sFactory(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) - Mappings:
Namespace Name Mixin selector named c2sFactory
Lnet/minecraft/network/NetworkStateBuilder;c2sFactory(Lnet/minecraft/network/NetworkPhase;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState$Factory;
intermediary method_56457
Lnet/minecraft/class_9147;method_56457(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127$class_9128;
official c
Lzk;c(Lvt;Ljava/util/function/Consumer;)Lwg$a;
-
s2cFactory
public static <T extends ClientPacketListener,B extends ByteBuf> NetworkState.Factory<T,B> s2cFactory(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) - Mappings:
Namespace Name Mixin selector named s2cFactory
Lnet/minecraft/network/NetworkStateBuilder;s2cFactory(Lnet/minecraft/network/NetworkPhase;Ljava/util/function/Consumer;)Lnet/minecraft/network/NetworkState$Factory;
intermediary method_56458
Lnet/minecraft/class_9147;method_56458(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127$class_9128;
official d
Lzk;d(Lvt;Ljava/util/function/Consumer;)Lwg$a;
-