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 aab
  • Field Details

    • type

      private 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 Laab;a:Lwl;
    • side

      private 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 Laab;b:Lzx;
    • 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 Laab;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 Laab;d:Lzv;
  • 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> Laab;<init>(Lwl;Lzx;)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 Laab;a(Lzy;Lzn;)Laab;
    • 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 Laab;a(Lzy;Ljava/util/function/Function;Lzt;)Laab;
    • 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 Laab;a(Ljava/util/function/Function;Ljava/util/List;)Lzn;
    • 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 Laab;a(Ljava/util/function/Function;)Lwx;
    • 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 Laab;a()Lwx$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 Laab;a(Lwl;Lzx;Ljava/util/function/Consumer;)Lwx;
    • 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 Laab;a(Lwl;Ljava/util/function/Consumer;)Lwx;
    • 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 Laab;b(Lwl;Ljava/util/function/Consumer;)Lwx;
    • 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 Laab;b(Lwl;Lzx;Ljava/util/function/Consumer;)Lwx$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 Laab;c(Lwl;Ljava/util/function/Consumer;)Lwx$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 Laab;d(Lwl;Ljava/util/function/Consumer;)Lwx$a;