Interface PacketCodecs


public interface PacketCodecs
Mappings:
Namespace Name
official xm
intermediary net/minecraft/class_9135
named net/minecraft/network/codec/PacketCodecs
  • Field Details

    • BOOL

      static final PacketCodec<ByteBuf,Boolean> BOOL
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a:Lxo;
      intermediary field_48547 Lnet/minecraft/class_9135;field_48547:Lnet/minecraft/class_9139;
      named BOOL Lnet/minecraft/network/codec/PacketCodecs;BOOL:Lnet/minecraft/network/codec/PacketCodec;
    • BYTE

      static final PacketCodec<ByteBuf,Byte> BYTE
      Mappings:
      Namespace Name Mixin selector
      official b Lxm;b:Lxo;
      intermediary field_48548 Lnet/minecraft/class_9135;field_48548:Lnet/minecraft/class_9139;
      named BYTE Lnet/minecraft/network/codec/PacketCodecs;BYTE:Lnet/minecraft/network/codec/PacketCodec;
    • SHORT

      static final PacketCodec<ByteBuf,Short> SHORT
      Mappings:
      Namespace Name Mixin selector
      official c Lxm;c:Lxo;
      intermediary field_48549 Lnet/minecraft/class_9135;field_48549:Lnet/minecraft/class_9139;
      named SHORT Lnet/minecraft/network/codec/PacketCodecs;SHORT:Lnet/minecraft/network/codec/PacketCodec;
    • VAR_INT

      static final PacketCodec<ByteBuf,Integer> VAR_INT
      Mappings:
      Namespace Name Mixin selector
      official d Lxm;d:Lxo;
      intermediary field_48550 Lnet/minecraft/class_9135;field_48550:Lnet/minecraft/class_9139;
      named VAR_INT Lnet/minecraft/network/codec/PacketCodecs;VAR_INT:Lnet/minecraft/network/codec/PacketCodec;
    • VAR_LONG

      static final PacketCodec<ByteBuf,Long> VAR_LONG
      Mappings:
      Namespace Name Mixin selector
      official e Lxm;e:Lxo;
      intermediary field_48551 Lnet/minecraft/class_9135;field_48551:Lnet/minecraft/class_9139;
      named VAR_LONG Lnet/minecraft/network/codec/PacketCodecs;VAR_LONG:Lnet/minecraft/network/codec/PacketCodec;
    • FLOAT

      static final PacketCodec<ByteBuf,Float> FLOAT
      Mappings:
      Namespace Name Mixin selector
      official f Lxm;f:Lxo;
      intermediary field_48552 Lnet/minecraft/class_9135;field_48552:Lnet/minecraft/class_9139;
      named FLOAT Lnet/minecraft/network/codec/PacketCodecs;FLOAT:Lnet/minecraft/network/codec/PacketCodec;
    • DOUBLE

      static final PacketCodec<ByteBuf,Double> DOUBLE
      Mappings:
      Namespace Name Mixin selector
      official g Lxm;g:Lxo;
      intermediary field_48553 Lnet/minecraft/class_9135;field_48553:Lnet/minecraft/class_9139;
      named DOUBLE Lnet/minecraft/network/codec/PacketCodecs;DOUBLE:Lnet/minecraft/network/codec/PacketCodec;
    • STRING

      static final PacketCodec<ByteBuf,String> STRING
      Mappings:
      Namespace Name Mixin selector
      official h Lxm;h:Lxo;
      intermediary field_48554 Lnet/minecraft/class_9135;field_48554:Lnet/minecraft/class_9139;
      named STRING Lnet/minecraft/network/codec/PacketCodecs;STRING:Lnet/minecraft/network/codec/PacketCodec;
    • NBT_ELEMENT

      static final PacketCodec<ByteBuf,NbtElement> NBT_ELEMENT
      Mappings:
      Namespace Name Mixin selector
      official i Lxm;i:Lxo;
      intermediary field_48555 Lnet/minecraft/class_9135;field_48555:Lnet/minecraft/class_9139;
      named NBT_ELEMENT Lnet/minecraft/network/codec/PacketCodecs;NBT_ELEMENT:Lnet/minecraft/network/codec/PacketCodec;
    • NBT_COMPUND

      static final PacketCodec<ByteBuf,NbtCompound> NBT_COMPUND
      Mappings:
      Namespace Name Mixin selector
      official j Lxm;j:Lxo;
      intermediary field_48556 Lnet/minecraft/class_9135;field_48556:Lnet/minecraft/class_9139;
      named NBT_COMPUND Lnet/minecraft/network/codec/PacketCodecs;NBT_COMPUND:Lnet/minecraft/network/codec/PacketCodec;
    • OPTIONAL_NBT

      static final PacketCodec<ByteBuf,Optional<NbtCompound>> OPTIONAL_NBT
      Mappings:
      Namespace Name Mixin selector
      official k Lxm;k:Lxo;
      intermediary field_48557 Lnet/minecraft/class_9135;field_48557:Lnet/minecraft/class_9139;
      named OPTIONAL_NBT Lnet/minecraft/network/codec/PacketCodecs;OPTIONAL_NBT:Lnet/minecraft/network/codec/PacketCodec;
    • VECTOR3F

      static final PacketCodec<ByteBuf,Vector3f> VECTOR3F
      Mappings:
      Namespace Name Mixin selector
      official l Lxm;l:Lxo;
      intermediary field_48558 Lnet/minecraft/class_9135;field_48558:Lnet/minecraft/class_9139;
      named VECTOR3F Lnet/minecraft/network/codec/PacketCodecs;VECTOR3F:Lnet/minecraft/network/codec/PacketCodec;
    • QUATERNION

      static final PacketCodec<ByteBuf,Quaternionf> QUATERNION
      Mappings:
      Namespace Name Mixin selector
      official m Lxm;m:Lxo;
      intermediary field_48559 Lnet/minecraft/class_9135;field_48559:Lnet/minecraft/class_9139;
      named QUATERNION Lnet/minecraft/network/codec/PacketCodecs;QUATERNION:Lnet/minecraft/network/codec/PacketCodec;
  • Method Details

    • string

      static PacketCodec<ByteBuf,String> string(int length)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(I)Lxo;
      intermediary method_56364 Lnet/minecraft/class_9135;method_56364(I)Lnet/minecraft/class_9139;
      named string Lnet/minecraft/network/codec/PacketCodecs;string(I)Lnet/minecraft/network/codec/PacketCodec;
    • nbt

      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Ljava/util/function/Supplier;)Lxo;
      intermediary method_56378 Lnet/minecraft/class_9135;method_56378(Ljava/util/function/Supplier;)Lnet/minecraft/class_9139;
      named nbt Lnet/minecraft/network/codec/PacketCodecs;nbt(Ljava/util/function/Supplier;)Lnet/minecraft/network/codec/PacketCodec;
    • ofCodec

      static <T> PacketCodec<ByteBuf,T> ofCodec(com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Lcom/mojang/serialization/Codec;)Lxo;
      intermediary method_56368 Lnet/minecraft/class_9135;method_56368(Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_9139;
      named ofCodec Lnet/minecraft/network/codec/PacketCodecs;ofCodec(Lcom/mojang/serialization/Codec;)Lnet/minecraft/network/codec/PacketCodec;
    • optional

      static <B extends ByteBuf, V> PacketCodec<B,Optional<V>> optional(PacketCodec<B,V> codec)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Lxo;)Lxo;
      intermediary method_56382 Lnet/minecraft/class_9135;method_56382(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      named optional Lnet/minecraft/network/codec/PacketCodecs;optional(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
    • collection

      static <B extends ByteBuf, V, C extends Collection<V>> PacketCodec<B,C> collection(IntFunction<C> factory, PacketCodec<? super B,V> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Ljava/util/function/IntFunction;Lxo;)Lxo;
      intermediary method_56376 Lnet/minecraft/class_9135;method_56376(Ljava/util/function/IntFunction;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      named collection Lnet/minecraft/network/codec/PacketCodecs;collection(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
    • collectionMapper

      static <B extends ByteBuf, V, C extends Collection<V>> PacketCodec.ResultFunction<B,V,C> collectionMapper(IntFunction<C> factory)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Ljava/util/function/IntFunction;)Lxo$a;
      intermediary method_56374 Lnet/minecraft/class_9135;method_56374(Ljava/util/function/IntFunction;)Lnet/minecraft/class_9139$class_9140;
      named collectionMapper Lnet/minecraft/network/codec/PacketCodecs;collectionMapper(Ljava/util/function/IntFunction;)Lnet/minecraft/network/codec/PacketCodec$ResultFunction;
    • listMapper

      static <B extends ByteBuf, V> PacketCodec.ResultFunction<B,V,List<V>> listMapper()
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a()Lxo$a;
      intermediary method_56363 Lnet/minecraft/class_9135;method_56363()Lnet/minecraft/class_9139$class_9140;
      named listMapper Lnet/minecraft/network/codec/PacketCodecs;listMapper()Lnet/minecraft/network/codec/PacketCodec$ResultFunction;
    • map

      static <B extends ByteBuf, K, V, M extends Map<K, V>> PacketCodec<B,M> map(IntFunction<? extends M> factory, PacketCodec<? super B,K> keyCodec, PacketCodec<? super B,V> valueCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Ljava/util/function/IntFunction;Lxo;Lxo;)Lxo;
      intermediary method_56377 Lnet/minecraft/class_9135;method_56377(Ljava/util/function/IntFunction;Lnet/minecraft/class_9139;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      named map Lnet/minecraft/network/codec/PacketCodecs;map(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketCodec;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;
    • indexed

      static <T> PacketCodec<ByteBuf,T> indexed(IntFunction<T> from, ToIntFunction<T> to)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lxo;
      intermediary method_56375 Lnet/minecraft/class_9135;method_56375(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_9139;
      named indexed Lnet/minecraft/network/codec/PacketCodecs;indexed(Ljava/util/function/IntFunction;Ljava/util/function/ToIntFunction;)Lnet/minecraft/network/codec/PacketCodec;
    • ofIterable

      static <T> PacketCodec<ByteBuf,T> ofIterable(IndexedIterable<T> iterable)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Lio;)Lxo;
      intermediary method_56371 Lnet/minecraft/class_9135;method_56371(Lnet/minecraft/class_2359;)Lnet/minecraft/class_9139;
      named ofIterable Lnet/minecraft/network/codec/PacketCodecs;ofIterable(Lnet/minecraft/util/collection/IndexedIterable;)Lnet/minecraft/network/codec/PacketCodec;
    • registry

      private static <T, R> PacketCodec<RegistryByteBuf,R> registry(RegistryKey<? extends Registry<T>> registry, Function<Registry<T>,IndexedIterable<R>> registryTransformer)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Laix;Ljava/util/function/Function;)Lxo;
      intermediary method_56366 Lnet/minecraft/class_9135;method_56366(Lnet/minecraft/class_5321;Ljava/util/function/Function;)Lnet/minecraft/class_9139;
      named registry Lnet/minecraft/network/codec/PacketCodecs;registry(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Function;)Lnet/minecraft/network/codec/PacketCodec;
    • registry

      static <T> PacketCodec<RegistryByteBuf,T> registry(RegistryKey<? extends Registry<T>> registry)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Laix;)Lxo;
      intermediary method_56365 Lnet/minecraft/class_9135;method_56365(Lnet/minecraft/class_5321;)Lnet/minecraft/class_9139;
      named registry Lnet/minecraft/network/codec/PacketCodecs;registry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/network/codec/PacketCodec;
    • registryEntry

      static <T> PacketCodec<RegistryByteBuf,RegistryEntry<T>> registryEntry(RegistryKey<? extends Registry<T>> registry)
      Mappings:
      Namespace Name Mixin selector
      official b Lxm;b(Laix;)Lxo;
      intermediary method_56383 Lnet/minecraft/class_9135;method_56383(Lnet/minecraft/class_5321;)Lnet/minecraft/class_9139;
      named registryEntry Lnet/minecraft/network/codec/PacketCodecs;registryEntry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/network/codec/PacketCodec;
    • registryEntry

      static <T> PacketCodec<RegistryByteBuf,RegistryEntry<T>> registryEntry(RegistryKey<? extends Registry<T>> registry, PacketCodec<? super RegistryByteBuf,T> fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lxm;a(Laix;Lxo;)Lxo;
      intermediary method_56367 Lnet/minecraft/class_9135;method_56367(Lnet/minecraft/class_5321;Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;
      named registryEntry Lnet/minecraft/network/codec/PacketCodecs;registryEntry(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;