Class NetworkStateBuilder<T extends PacketListener,B extends ByteBuf>

java.lang.Object
net.minecraft.network.NetworkStateBuilder<T,B>

public class NetworkStateBuilder<T extends PacketListener,B extends ByteBuf> extends Object
Mappings:
Namespace Name
named net/minecraft/network/NetworkStateBuilder
intermediary net/minecraft/class_9147
official aah
  • Field Details

    • type

      final NetworkPhase 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 Laah;a:Lwq;
    • side

      final NetworkSide 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 Laah;b:Laad;
    • packetTypes

      private final List<NetworkStateBuilder.PacketType<T extends PacketListener,?,B extends ByteBuf>> packetTypes
      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 Laah;c:Ljava/util/List;
    • bundleHandler

      @Nullable private @Nullable PacketBundleHandler 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 Laah;d:Laab;
  • Constructor Details

    • NetworkStateBuilder

      public NetworkStateBuilder(NetworkPhase type, NetworkSide side)
      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> Laah;<init>(Lwq;Laad;)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 Laah;a(Laae;Lzt;)Laah;
    • 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 Laah;a(Laae;Ljava/util/function/Function;Lzz;)Laah;
    • createCodec

      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 Laah;a(Ljava/util/function/Function;Ljava/util/List;)Lzt;
    • build

      public NetworkState<T> build(Function<ByteBuf,B> bufUpgrader)
      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 Laah;a(Ljava/util/function/Function;)Lxd;
    • buildFactory

      public NetworkState.Factory<T,B> 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 Laah;a()Lxd$a;
    • build

      private static <L extends PacketListener, B extends ByteBuf> NetworkState.Factory<L,B> build(NetworkPhase type, NetworkSide side, Consumer<NetworkStateBuilder<L,B>> 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$Factory;
      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$class_9128;
      official a Laah;a(Lwq;Laad;Ljava/util/function/Consumer;)Lxd$a;
    • c2s

      public static <T extends ServerPacketListener, B extends ByteBuf> NetworkState.Factory<T,B> c2s(NetworkPhase type, Consumer<NetworkStateBuilder<T,B>> 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$Factory;
      intermediary method_56451 Lnet/minecraft/class_9147;method_56451(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127$class_9128;
      official a Laah;a(Lwq;Ljava/util/function/Consumer;)Lxd$a;
    • s2c

      public static <T extends ClientPacketListener, B extends ByteBuf> NetworkState.Factory<T,B> s2c(NetworkPhase type, Consumer<NetworkStateBuilder<T,B>> 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$Factory;
      intermediary method_56455 Lnet/minecraft/class_9147;method_56455(Lnet/minecraft/class_2539;Ljava/util/function/Consumer;)Lnet/minecraft/class_9127$class_9128;
      official b Laah;b(Lwq;Ljava/util/function/Consumer;)Lxd$a;