Class PacketCodecDispatcher.Builder<B extends ByteBuf,V,T>

java.lang.Object
net.minecraft.network.handler.PacketCodecDispatcher.Builder<B,V,T>
Enclosing class:
PacketCodecDispatcher<B extends ByteBuf,V,T>

public static class PacketCodecDispatcher.Builder<B extends ByteBuf,V,T> extends Object
Mappings:
Namespace Name
named net/minecraft/network/handler/PacketCodecDispatcher$Builder
intermediary net/minecraft/class_9136$class_9137
official zs$a
  • Field Details

    • packetTypes

      private final List<PacketCodecDispatcher.PacketType<B extends ByteBuf,V,T>> packetTypes
      Mappings:
      Namespace Name Mixin selector
      named packetTypes Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;packetTypes:Ljava/util/List;
      intermediary field_48580 Lnet/minecraft/class_9136$class_9137;field_48580:Ljava/util/List;
      official a Lzs$a;a:Ljava/util/List;
    • packetIdGetter

      private final Function<V,? extends T> packetIdGetter
      Mappings:
      Namespace Name Mixin selector
      named packetIdGetter Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;packetIdGetter:Ljava/util/function/Function;
      intermediary field_48581 Lnet/minecraft/class_9136$class_9137;field_48581:Ljava/util/function/Function;
      official b Lzs$a;b:Ljava/util/function/Function;
  • Constructor Details

    • Builder

      Builder(Function<V,? extends T> packetIdGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_9136$class_9137;<init>(Ljava/util/function/Function;)V
      official <init> Lzs$a;<init>(Ljava/util/function/Function;)V
  • Method Details

    • add

      public PacketCodecDispatcher.Builder<B,V,T> add(T id, PacketCodec<? super B,? extends V> codec)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;add(Ljava/lang/Object;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;
      intermediary method_56429 Lnet/minecraft/class_9136$class_9137;method_56429(Ljava/lang/Object;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9136$class_9137;
      official a Lzs$a;a(Ljava/lang/Object;Lzt;)Lzs$a;
    • build

      public PacketCodecDispatcher<B,V,T> build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/network/handler/PacketCodecDispatcher$Builder;build()Lnet/minecraft/network/handler/PacketCodecDispatcher;
      intermediary method_56428 Lnet/minecraft/class_9136$class_9137;method_56428()Lnet/minecraft/class_9136;
      official a Lzs$a;a()Lzs;