Uses of Class
net.minecraft.network.NetworkStateBuilder
-
Uses of NetworkStateBuilder in net.minecraft.network
Modifier and TypeMethodDescription<P extends Packet<? super T>>
NetworkStateBuilder<T, B> NetworkStateBuilder.add
(PacketType<P> id, PacketCodec<? super B, P> codec) <P extends BundlePacket<? super T>,
D extends BundleSplitterPacket<? super T>>
NetworkStateBuilder<T, B> NetworkStateBuilder.addBundle
(PacketType<P> id, Function<Iterable<Packet<? super T>>, P> bundler, D splitter) Modifier and TypeMethodDescriptionprivate static <L extends PacketListener,
B extends ByteBuf>
NetworkState.Factory<L, B> NetworkStateBuilder.build
(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L, B>> registrar) static <T extends ServerPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> NetworkStateBuilder.c2s
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar) static <T extends ClientPacketListener,
B extends ByteBuf>
NetworkState.Factory<T, B> NetworkStateBuilder.s2c
(NetworkPhase type, Consumer<NetworkStateBuilder<T, B>> registrar)