Class PacketByteBuf

java.lang.Object
io.netty.buffer.ByteBuf
net.minecraft.network.PacketByteBuf
All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, Comparable<ByteBuf>
Direct Known Subclasses:
RegistryByteBuf

public class PacketByteBuf extends ByteBuf
A packet byte buf is a specialized byte buf with utility methods adapted to Minecraft's protocol. It has serialization and deserialization of custom objects.
Custom object handling
Object Type read method write method
Codec-based (NBT)decode(DynamicOps, Codec, NbtSizeTracker)encode(DynamicOps, Codec, Object)
Codec-based (JSON)decodeAsJson(Codec)encodeAsJson(Codec, Object)
Integer-identified valuedecode(IntFunction)encode(ToIntFunction, Object)
CollectionreadCollection(IntFunction, PacketByteBuf.PacketReader)writeCollection(Collection, PacketByteBuf.PacketWriter)
IntListreadIntList()writeIntList(IntList)
MapreadMap(IntFunction, PacketByteBuf.PacketReader, PacketByteBuf.PacketReader)writeMap(Map, PacketByteBuf.PacketWriter, PacketByteBuf.PacketWriter)
EnumSetreadEnumSet(Class)writeEnumSet(EnumSet, Class)
byte[]readByteArray()writeByteArray(byte[])
int[]readIntArray()writeIntArray(int[])
long[]readLongArray()writeLongArray(long[])
BlockPosreadBlockPos()writeBlockPos(BlockPos)
ChunkPosreadChunkPos()writeChunkPos(ChunkPos)
ChunkSectionPosreadChunkSectionPos()writeChunkSectionPos(ChunkSectionPos)
GlobalPosreadGlobalPos()writeGlobalPos(GlobalPos)
Vector3freadVector3f()writeVector3f(Vector3f)
Vec3dreadVec3d()writeVec3d(Vec3d)
QuaternionfreadQuaternionf()writeQuaternionf(Quaternionf)
EnumreadEnumConstant(Class)writeEnumConstant(Enum)
VarIntreadVarInt()writeVarInt(int)
VarLongreadVarLong()writeVarLong(long)
UUIDreadUuid()writeUuid(UUID)
NbtCompoundreadNbt()writeNbt(NbtCompound)
StringreadString()writeString(String)
IdentifierreadIdentifier()writeIdentifier(Identifier)
RegistryKeyreadRegistryKey(RegistryKey)writeRegistryKey(RegistryKey)
RegistryKey of a registryreadRegistryRefKey()writeRegistryKey(RegistryKey)
DatereadDate()writeDate(Date)
InstantreadInstant()writeInstant(Instant)
PublicKeyreadPublicKey()writePublicKey(PublicKey)
BlockHitResultreadBlockHitResult()writeBlockHitResult(BlockHitResult)
BitSetreadBitSet()writeBitSet(BitSet)
OptionalreadOptional(PacketByteBuf.PacketReader)writeOptional(Optional, PacketByteBuf.PacketWriter)
Nullable valuereadNullable(PacketByteBuf.PacketReader)writeNullable(Object, PacketByteBuf.PacketWriter)

All read and write methods throw IndexOutOfBoundsException if there is not enough bytes to be read or not enough space to write.

Mappings:
Namespace Name
named net/minecraft/network/PacketByteBuf
intermediary net/minecraft/class_2540
official wm
  • Field Details

    • MAX_READ_NBT_SIZE

      public static final int MAX_READ_NBT_SIZE
      The maximum size, in number of bytes, allowed of the NBT compound read by readNbt().
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_READ_NBT_SIZE Lnet/minecraft/network/PacketByteBuf;MAX_READ_NBT_SIZE:I
      intermediary field_33287 Lnet/minecraft/class_2540;field_33287:I
      official a Lwm;a:I
    • DEFAULT_MAX_STRING_LENGTH

      public static final short DEFAULT_MAX_STRING_LENGTH
      The default max length of strings read or written. This is also the max length of identifiers read or written in their string form.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_MAX_STRING_LENGTH Lnet/minecraft/network/PacketByteBuf;DEFAULT_MAX_STRING_LENGTH:S
      intermediary field_33283 Lnet/minecraft/class_2540;field_33283:S
      official b Lwm;b:S
    • MAX_TEXT_LENGTH

      public static final int MAX_TEXT_LENGTH
      The maximum size, in terms of JSON string length, allowed for serialized texts.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_TEXT_LENGTH Lnet/minecraft/network/PacketByteBuf;MAX_TEXT_LENGTH:I
      intermediary field_33284 Lnet/minecraft/class_2540;field_33284:I
      official c Lwm;c:I
    • field_39381

      private static final int field_39381
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39381 Lnet/minecraft/network/PacketByteBuf;field_39381:I
      intermediary field_39381 Lnet/minecraft/class_2540;field_39381:I
      official e Lwm;e:I
    • field_39382

      private static final int field_39382
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39382 Lnet/minecraft/network/PacketByteBuf;field_39382:I
      intermediary field_39382 Lnet/minecraft/class_2540;field_39382:I
      official f Lwm;f:I
    • field_39383

      private static final int field_39383
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_39383 Lnet/minecraft/network/PacketByteBuf;field_39383:I
      intermediary field_39383 Lnet/minecraft/class_2540;field_39383:I
      official g Lwm;g:I
    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      named GSON Lnet/minecraft/network/PacketByteBuf;GSON:Lcom/google/gson/Gson;
      intermediary field_42966 Lnet/minecraft/class_2540;field_42966:Lcom/google/gson/Gson;
      official h Lwm;h:Lcom/google/gson/Gson;
    • parent

      private final ByteBuf parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/network/PacketByteBuf;parent:Lio/netty/buffer/ByteBuf;
      intermediary field_11695 Lnet/minecraft/class_2540;field_11695:Lio/netty/buffer/ByteBuf;
      official d Lwm;d:Lio/netty/buffer/ByteBuf;
  • Constructor Details

    • PacketByteBuf

      public PacketByteBuf(ByteBuf parent)
      Creates a packet byte buf that delegates its operations to the parent buf.
      Parameters:
      parent - the parent, or delegate, buf
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/PacketByteBuf;<init>(Lio/netty/buffer/ByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2540;<init>(Lio/netty/buffer/ByteBuf;)V
      official <init> Lwm;<init>(Lio/netty/buffer/ByteBuf;)V
  • Method Details

    • decode

      @Deprecated public <T> T decode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec)
      Deprecated.
      Reads an object from this buf as a compound NBT with the given codec.
      Type Parameters:
      T - the decoded object's type
      Returns:
      the read object
      Throws:
      EncoderException - if the codec fails to decode the compound NBT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/network/PacketByteBuf;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
      intermediary method_52954 Lnet/minecraft/class_2540;method_52954(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
      official a Lwm;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
    • decode

      @Deprecated public <T> T decode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, NbtSizeTracker sizeTracker)
      Deprecated.
      Reads an object from this buf as a compound NBT with the given codec.
      Type Parameters:
      T - the decoded object's type
      Returns:
      the read object
      Throws:
      EncoderException - if the codec fails to decode the compound NBT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/network/PacketByteBuf;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/nbt/NbtSizeTracker;)Ljava/lang/Object;
      intermediary method_29171 Lnet/minecraft/class_2540;method_29171(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2505;)Ljava/lang/Object;
      official a Lwm;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lvb;)Ljava/lang/Object;
    • encode

      @Deprecated public <T> PacketByteBuf encode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value)
      Deprecated.
      Writes an object to this buf as a compound NBT with the given codec.
      Type Parameters:
      T - the encoded object's type
      Throws:
      EncoderException - if the codec fails to encode the compound NBT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/network/PacketByteBuf;encode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_29172 Lnet/minecraft/class_2540;method_29172(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lnet/minecraft/class_2540;
      official a Lwm;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lwm;
    • decodeAsJson

      public <T> T decodeAsJson(com.mojang.serialization.Codec<T> codec)
      Reads an object from this buf as a JSON element with the given codec.
      Type Parameters:
      T - the decoded object's type
      Returns:
      the read object
      Throws:
      EncoderException - if the codec fails to decode the JSON element
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named decodeAsJson Lnet/minecraft/network/PacketByteBuf;decodeAsJson(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
      intermediary method_49394 Lnet/minecraft/class_2540;method_49394(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
      official a Lwm;a(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
    • encodeAsJson

      public <T> void encodeAsJson(com.mojang.serialization.Codec<T> codec, T value)
      Writes an object to this buf as a JSON element with the given codec.
      Type Parameters:
      T - the encoded object's type
      Throws:
      EncoderException - if the codec fails to encode the JSON element
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named encodeAsJson Lnet/minecraft/network/PacketByteBuf;encodeAsJson(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
      intermediary method_49395 Lnet/minecraft/class_2540;method_49395(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
      official a Lwm;a(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
    • getMaxValidator

      public static <T> IntFunction<T> getMaxValidator(IntFunction<T> applier, int max)
      Mappings:
      Namespace Name Mixin selector
      named getMaxValidator Lnet/minecraft/network/PacketByteBuf;getMaxValidator(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
      intermediary method_37453 Lnet/minecraft/class_2540;method_37453(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
      official a Lwm;a(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
    • readCollection

      public <T, C extends Collection<T>> C readCollection(IntFunction<C> collectionFactory, PacketDecoder<? super PacketByteBuf,T> reader)
      Reads a collection from this buf. The collection is stored as a leading var int size followed by the entries sequentially.
      Type Parameters:
      T - the collection's entry type
      C - the collection's type
      Parameters:
      collectionFactory - a factory that creates a collection with a given size
      Returns:
      the read collection
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCollection Lnet/minecraft/network/PacketByteBuf;readCollection(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Collection;
      intermediary method_34068 Lnet/minecraft/class_2540;method_34068(Ljava/util/function/IntFunction;Lnet/minecraft/class_9141;)Ljava/util/Collection;
      official a Lwm;a(Ljava/util/function/IntFunction;Lzo;)Ljava/util/Collection;
    • writeCollection

      public <T> void writeCollection(Collection<T> collection, PacketEncoder<? super PacketByteBuf,T> writer)
      Writes a collection to this buf. The collection is stored as a leading var int size followed by the entries sequentially.
      Type Parameters:
      T - the list's entry type
      Parameters:
      collection - the collection to write
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCollection Lnet/minecraft/network/PacketByteBuf;writeCollection(Ljava/util/Collection;Lnet/minecraft/network/codec/PacketEncoder;)V
      intermediary method_34062 Lnet/minecraft/class_2540;method_34062(Ljava/util/Collection;Lnet/minecraft/class_9142;)V
      official a Lwm;a(Ljava/util/Collection;Lzp;)V
    • readList

      public <T> List<T> readList(PacketDecoder<? super PacketByteBuf,T> reader)
      Reads a collection from this buf as an array list.
      Type Parameters:
      T - the list's entry type
      Returns:
      the read list
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readList Lnet/minecraft/network/PacketByteBuf;readList(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/List;
      intermediary method_34066 Lnet/minecraft/class_2540;method_34066(Lnet/minecraft/class_9141;)Ljava/util/List;
      official a Lwm;a(Lzo;)Ljava/util/List;
    • readIntList

      public IntList readIntList()
      Reads a list of primitive ints from this buf. The ints are stored as var ints, with an extra var int in the beginning indicating the size.
      Returns:
      the read list
      See Also:
      API Note:
      To limit the length of the list or array read, use readIntArray(int).
      Implementation Note:
      A list of ints has the same format as an int array.
      Mappings:
      Namespace Name Mixin selector
      named readIntList Lnet/minecraft/network/PacketByteBuf;readIntList()Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary method_34059 Lnet/minecraft/class_2540;method_34059()Lit/unimi/dsi/fastutil/ints/IntList;
      official a Lwm;a()Lit/unimi/dsi/fastutil/ints/IntList;
    • writeIntList

      public void writeIntList(IntList list)
      Writes a list of primitive ints from this buf. The ints are stored as var ints, with an extra var int in the beginning indicating the size.
      Parameters:
      list - the list to write
      See Also:
      Implementation Note:
      A list of ints has the same format as an int array.
      Mappings:
      Namespace Name Mixin selector
      named writeIntList Lnet/minecraft/network/PacketByteBuf;writeIntList(Lit/unimi/dsi/fastutil/ints/IntList;)V
      intermediary method_34060 Lnet/minecraft/class_2540;method_34060(Lit/unimi/dsi/fastutil/ints/IntList;)V
      official a Lwm;a(Lit/unimi/dsi/fastutil/ints/IntList;)V
    • readMap

      public <K, V, M extends Map<K, V>> M readMap(IntFunction<M> mapFactory, PacketDecoder<? super PacketByteBuf,K> keyReader, PacketDecoder<? super PacketByteBuf,V> valueReader)
      Reads a map from this buf. The map is stored as a leading var int size followed by each key and value pair.
      Type Parameters:
      K - the key type
      V - the value type
      M - the map type
      Parameters:
      mapFactory - a factory that creates a map with a given size
      Returns:
      the read map
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readMap Lnet/minecraft/network/PacketByteBuf;readMap(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketDecoder;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Map;
      intermediary method_34069 Lnet/minecraft/class_2540;method_34069(Ljava/util/function/IntFunction;Lnet/minecraft/class_9141;Lnet/minecraft/class_9141;)Ljava/util/Map;
      official a Lwm;a(Ljava/util/function/IntFunction;Lzo;Lzo;)Ljava/util/Map;
    • readMap

      public <K, V> Map<K,V> readMap(PacketDecoder<? super PacketByteBuf,K> keyReader, PacketDecoder<? super PacketByteBuf,V> valueReader)
      Reads a map from this buf as a hash map.
      Type Parameters:
      K - the key type
      V - the value type
      Returns:
      the read map
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readMap Lnet/minecraft/network/PacketByteBuf;readMap(Lnet/minecraft/network/codec/PacketDecoder;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Map;
      intermediary method_34067 Lnet/minecraft/class_2540;method_34067(Lnet/minecraft/class_9141;Lnet/minecraft/class_9141;)Ljava/util/Map;
      official a Lwm;a(Lzo;Lzo;)Ljava/util/Map;
    • writeMap

      public <K, V> void writeMap(Map<K,V> map, PacketEncoder<? super PacketByteBuf,K> keyWriter, PacketEncoder<? super PacketByteBuf,V> valueWriter)
      Writes a map to this buf. The map is stored as a leading var int size followed by each key and value pair.
      Type Parameters:
      K - the key type
      V - the value type
      Parameters:
      map - the map to write
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeMap Lnet/minecraft/network/PacketByteBuf;writeMap(Ljava/util/Map;Lnet/minecraft/network/codec/PacketEncoder;Lnet/minecraft/network/codec/PacketEncoder;)V
      intermediary method_34063 Lnet/minecraft/class_2540;method_34063(Ljava/util/Map;Lnet/minecraft/class_9142;Lnet/minecraft/class_9142;)V
      official a Lwm;a(Ljava/util/Map;Lzp;Lzp;)V
    • forEachInCollection

      public void forEachInCollection(Consumer<PacketByteBuf> consumer)
      Iterates a collection from this buf. The collection is stored as a leading var int size followed by the entries sequentially. The consumer will be called size times.
      Parameters:
      consumer - the consumer to read entries
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named forEachInCollection Lnet/minecraft/network/PacketByteBuf;forEachInCollection(Ljava/util/function/Consumer;)V
      intermediary method_34065 Lnet/minecraft/class_2540;method_34065(Ljava/util/function/Consumer;)V
      official a Lwm;a(Ljava/util/function/Consumer;)V
    • writeEnumSet

      public <E extends Enum<E>> void writeEnumSet(EnumSet<E> enumSet, Class<E> type)
      Writes an enum set to this buf. An enum set is represented by a bit set that indicates whether each element is in the set.
      Parameters:
      type - the type of the enum
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeEnumSet Lnet/minecraft/network/PacketByteBuf;writeEnumSet(Ljava/util/EnumSet;Ljava/lang/Class;)V
      intermediary method_46253 Lnet/minecraft/class_2540;method_46253(Ljava/util/EnumSet;Ljava/lang/Class;)V
      official a Lwm;a(Ljava/util/EnumSet;Ljava/lang/Class;)V
    • readEnumSet

      public <E extends Enum<E>> EnumSet<E> readEnumSet(Class<E> type)
      Reads an enum set from this buf. An enum set is represented by a bit set that indicates whether each element is in the set.
      Parameters:
      type - the type of the enum
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readEnumSet Lnet/minecraft/network/PacketByteBuf;readEnumSet(Ljava/lang/Class;)Ljava/util/EnumSet;
      intermediary method_46251 Lnet/minecraft/class_2540;method_46251(Ljava/lang/Class;)Ljava/util/EnumSet;
      official a Lwm;a(Ljava/lang/Class;)Ljava/util/EnumSet;
    • writeOptional

      public <T> void writeOptional(Optional<T> value, PacketEncoder<? super PacketByteBuf,T> writer)
      Writes an optional value to this buf. An optional value is represented by a boolean indicating if the value is present, followed by the value only if the value is present.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeOptional Lnet/minecraft/network/PacketByteBuf;writeOptional(Ljava/util/Optional;Lnet/minecraft/network/codec/PacketEncoder;)V
      intermediary method_37435 Lnet/minecraft/class_2540;method_37435(Ljava/util/Optional;Lnet/minecraft/class_9142;)V
      official a Lwm;a(Ljava/util/Optional;Lzp;)V
    • readOptional

      public <T> Optional<T> readOptional(PacketDecoder<? super PacketByteBuf,T> reader)
      Reads an optional value from this buf. An optional value is represented by a boolean indicating if the value is present, followed by the value only if the value is present.
      Returns:
      the read optional value
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readOptional Lnet/minecraft/network/PacketByteBuf;readOptional(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Optional;
      intermediary method_37436 Lnet/minecraft/class_2540;method_37436(Lnet/minecraft/class_9141;)Ljava/util/Optional;
      official b Lwm;b(Lzo;)Ljava/util/Optional;
    • readNullable

      @Nullable public <T> T readNullable(PacketDecoder<? super PacketByteBuf,T> reader)
      Reads a nullable value from this buf. A nullable value is represented by a boolean indicating if the value is not null, followed by the value only if the value is not null.
      Returns:
      the read nullable value
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNullable Lnet/minecraft/network/PacketByteBuf;readNullable(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/lang/Object;
      intermediary method_43827 Lnet/minecraft/class_2540;method_43827(Lnet/minecraft/class_9141;)Ljava/lang/Object;
      official c Lwm;c(Lzo;)Ljava/lang/Object;
    • readNullable

      @Nullable public static <T, B extends ByteBuf> T readNullable(B buf, PacketDecoder<? super B,T> reader)
      Mappings:
      Namespace Name Mixin selector
      named readNullable Lnet/minecraft/network/PacketByteBuf;readNullable(Lio/netty/buffer/ByteBuf;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/lang/Object;
      intermediary method_56893 Lnet/minecraft/class_2540;method_56893(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_9141;)Ljava/lang/Object;
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Lzo;)Ljava/lang/Object;
    • writeNullable

      public <T> void writeNullable(@Nullable T value, PacketEncoder<? super PacketByteBuf,T> writer)
      Writes a nullable value to this buf. A nullable value is represented by a boolean indicating if the value is not null, followed by the value only if the value is not null.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNullable Lnet/minecraft/network/PacketByteBuf;writeNullable(Ljava/lang/Object;Lnet/minecraft/network/codec/PacketEncoder;)V
      intermediary method_43826 Lnet/minecraft/class_2540;method_43826(Ljava/lang/Object;Lnet/minecraft/class_9142;)V
      official a Lwm;a(Ljava/lang/Object;Lzp;)V
    • writeNullable

      public static <T, B extends ByteBuf> void writeNullable(B buf, @Nullable T value, PacketEncoder<? super B,T> writer)
      Mappings:
      Namespace Name Mixin selector
      named writeNullable Lnet/minecraft/network/PacketByteBuf;writeNullable(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lnet/minecraft/network/codec/PacketEncoder;)V
      intermediary method_56892 Lnet/minecraft/class_2540;method_56892(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lnet/minecraft/class_9142;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lzp;)V
    • readByteArray

      public byte[] readByteArray()
      Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array does not have a length limit.
      Returns:
      the read byte array
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray()[B
      intermediary method_10795 Lnet/minecraft/class_2540;method_10795()[B
      official b Lwm;b()[B
    • readByteArray

      public static byte[] readByteArray(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray(Lio/netty/buffer/ByteBuf;)[B
      intermediary method_56890 Lnet/minecraft/class_2540;method_56890(Lio/netty/buffer/ByteBuf;)[B
      official a Lwm;a(Lio/netty/buffer/ByteBuf;)[B
    • writeByteArray

      public PacketByteBuf writeByteArray(byte[] array)
      Writes an array of primitive bytes to this buf. The array first has a var int indicating its length, followed by the actual bytes.
      Parameters:
      array - the array to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeByteArray Lnet/minecraft/network/PacketByteBuf;writeByteArray([B)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10813 Lnet/minecraft/class_2540;method_10813([B)Lnet/minecraft/class_2540;
      official a Lwm;a([B)Lwm;
    • writeByteArray

      public static void writeByteArray(ByteBuf buf, byte[] array)
      Mappings:
      Namespace Name Mixin selector
      named writeByteArray Lnet/minecraft/network/PacketByteBuf;writeByteArray(Lio/netty/buffer/ByteBuf;[B)V
      intermediary method_56894 Lnet/minecraft/class_2540;method_56894(Lio/netty/buffer/ByteBuf;[B)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;[B)V
    • readByteArray

      public byte[] readByteArray(int maxSize)
      Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array has a length limit given by maxSize.
      Parameters:
      maxSize - the max length of the read array
      Returns:
      the read byte array
      Throws:
      DecoderException - if the read array has a length over maxSize
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray(I)[B
      intermediary method_10803 Lnet/minecraft/class_2540;method_10803(I)[B
      official a Lwm;a(I)[B
    • readByteArray

      public static byte[] readByteArray(ByteBuf buf, int maxSize)
      Mappings:
      Namespace Name Mixin selector
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray(Lio/netty/buffer/ByteBuf;I)[B
      intermediary method_56891 Lnet/minecraft/class_2540;method_56891(Lio/netty/buffer/ByteBuf;I)[B
      official a Lwm;a(Lio/netty/buffer/ByteBuf;I)[B
    • writeIntArray

      public PacketByteBuf writeIntArray(int[] array)
      Writes an array of primitive ints to this buf. The array first has a var int indicating its length, followed by the var int entries.
      Parameters:
      array - the array to write
      Returns:
      this buf, for chaining
      See Also:
      Implementation Note:
      An int array has the same format as a list of ints.
      Mappings:
      Namespace Name Mixin selector
      named writeIntArray Lnet/minecraft/network/PacketByteBuf;writeIntArray([I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10806 Lnet/minecraft/class_2540;method_10806([I)Lnet/minecraft/class_2540;
      official a Lwm;a([I)Lwm;
    • readIntArray

      public int[] readIntArray()
      Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array does not have a length limit.
      Returns:
      the read byte array
      See Also:
      Implementation Note:
      An int array has the same format as a list of ints.
      Mappings:
      Namespace Name Mixin selector
      named readIntArray Lnet/minecraft/network/PacketByteBuf;readIntArray()[I
      intermediary method_10787 Lnet/minecraft/class_2540;method_10787()[I
      official c Lwm;c()[I
    • readIntArray

      public int[] readIntArray(int maxSize)
      Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array has a length limit given by maxSize.
      Parameters:
      maxSize - the max length of the read array
      Returns:
      the read byte array
      Throws:
      DecoderException - if the read array has a length over maxSize
      See Also:
      Implementation Note:
      An int array has the same format as a list of ints.
      Mappings:
      Namespace Name Mixin selector
      named readIntArray Lnet/minecraft/network/PacketByteBuf;readIntArray(I)[I
      intermediary method_10799 Lnet/minecraft/class_2540;method_10799(I)[I
      official b Lwm;b(I)[I
    • writeLongArray

      public PacketByteBuf writeLongArray(long[] array)
      Writes an array of primitive longs to this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values.
      Parameters:
      array - the array to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeLongArray Lnet/minecraft/network/PacketByteBuf;writeLongArray([J)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10789 Lnet/minecraft/class_2540;method_10789([J)Lnet/minecraft/class_2540;
      official a Lwm;a([J)Lwm;
    • readLongArray

      public long[] readLongArray()
      Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array does not have a length limit.
      Returns:
      the read long array
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray()[J
      intermediary method_33134 Lnet/minecraft/class_2540;method_33134()[J
      official d Lwm;d()[J
    • readLongArray

      public long[] readLongArray(@Nullable @org.jetbrains.annotations.Nullable long[] toArray)
      Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array does not have a length limit.

      Only when toArray is not null and toArray.length equals to the length var int read will the toArray be reused and returned; otherwise, a new array of proper size is created.

      Parameters:
      toArray - the array to reuse
      Returns:
      the read long array
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray([J)[J
      intermediary method_10801 Lnet/minecraft/class_2540;method_10801([J)[J
      official b Lwm;b([J)[J
    • readLongArray

      public long[] readLongArray(@Nullable @org.jetbrains.annotations.Nullable long[] toArray, int maxSize)
      Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array has a length limit of maxSize.

      Only when toArray is not null and toArray.length equals to the length var int read will the toArray be reused and returned; otherwise, a new array of proper size is created.

      Parameters:
      toArray - the array to reuse
      maxSize - the max length of the read array
      Returns:
      the read long array
      Throws:
      DecoderException - if the read array has a length over maxSize
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray([JI)[J
      intermediary method_10809 Lnet/minecraft/class_2540;method_10809([JI)[J
      official a Lwm;a([JI)[J
    • readBlockPos

      public BlockPos readBlockPos()
      Reads a block position from this buf. A block position is represented by a regular long.
      Returns:
      the read block pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readBlockPos Lnet/minecraft/network/PacketByteBuf;readBlockPos()Lnet/minecraft/util/math/BlockPos;
      intermediary method_10811 Lnet/minecraft/class_2540;method_10811()Lnet/minecraft/class_2338;
      official e Lwm;e()Liz;
    • readBlockPos

      public static BlockPos readBlockPos(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readBlockPos Lnet/minecraft/network/PacketByteBuf;readBlockPos(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/util/math/BlockPos;
      intermediary method_56335 Lnet/minecraft/class_2540;method_56335(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2338;
      official b Lwm;b(Lio/netty/buffer/ByteBuf;)Liz;
    • writeBlockPos

      public PacketByteBuf writeBlockPos(BlockPos pos)
      Writes a block position to this buf. A block position is represented by a regular long.
      Parameters:
      pos - the pos to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeBlockPos Lnet/minecraft/network/PacketByteBuf;writeBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10807 Lnet/minecraft/class_2540;method_10807(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2540;
      official a Lwm;a(Liz;)Lwm;
    • writeBlockPos

      public static void writeBlockPos(ByteBuf buf, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named writeBlockPos Lnet/minecraft/network/PacketByteBuf;writeBlockPos(Lio/netty/buffer/ByteBuf;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_56336 Lnet/minecraft/class_2540;method_56336(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2338;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Liz;)V
    • readChunkPos

      public ChunkPos readChunkPos()
      Reads a chunk position from this buf. A chunk position is represented by a regular long.
      Returns:
      the read chunk position
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readChunkPos Lnet/minecraft/network/PacketByteBuf;readChunkPos()Lnet/minecraft/util/math/ChunkPos;
      intermediary method_36133 Lnet/minecraft/class_2540;method_36133()Lnet/minecraft/class_1923;
      official f Lwm;f()Ldbh;
    • writeChunkPos

      public PacketByteBuf writeChunkPos(ChunkPos pos)
      Writes a chunk position to this buf. A chunk position is represented by a regular long.
      Parameters:
      pos - the chunk position to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeChunkPos Lnet/minecraft/network/PacketByteBuf;writeChunkPos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_36130 Lnet/minecraft/class_2540;method_36130(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ldbh;)Lwm;
    • readChunkSectionPos

      public ChunkSectionPos readChunkSectionPos()
      Reads a chunk section position from this buf. A chunk section position is represented by a regular long.
      Returns:
      the read chunk section pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readChunkSectionPos Lnet/minecraft/network/PacketByteBuf;readChunkSectionPos()Lnet/minecraft/util/math/ChunkSectionPos;
      intermediary method_19456 Lnet/minecraft/class_2540;method_19456()Lnet/minecraft/class_4076;
      official g Lwm;g()Lkb;
    • writeChunkSectionPos

      public PacketByteBuf writeChunkSectionPos(ChunkSectionPos pos)
      Reads a chunk section position from this buf. A chunk section position is represented by a regular long.
      Parameters:
      pos - the section position to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeChunkSectionPos Lnet/minecraft/network/PacketByteBuf;writeChunkSectionPos(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_36131 Lnet/minecraft/class_2540;method_36131(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2540;
      official a Lwm;a(Lkb;)Lwm;
    • readGlobalPos

      public GlobalPos readGlobalPos()
      Reads a global position from this buf. A global position is represented by the registry key of the dimension followed by the block position.
      Returns:
      the read global pos
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readGlobalPos Lnet/minecraft/network/PacketByteBuf;readGlobalPos()Lnet/minecraft/util/math/GlobalPos;
      intermediary method_44117 Lnet/minecraft/class_2540;method_44117()Lnet/minecraft/class_4208;
      official h Lwm;h()Ljh;
    • writeGlobalPos

      public void writeGlobalPos(GlobalPos pos)
      Writes a global position to this buf. A global position is represented by the registry key of the dimension followed by the block position.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeGlobalPos Lnet/minecraft/network/PacketByteBuf;writeGlobalPos(Lnet/minecraft/util/math/GlobalPos;)V
      intermediary method_44113 Lnet/minecraft/class_2540;method_44113(Lnet/minecraft/class_4208;)V
      official a Lwm;a(Ljh;)V
    • readVector3f

      public Vector3f readVector3f()
      Reads a Vector3f from this buf. A Vector3f is represented by three floats.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readVector3f Lnet/minecraft/network/PacketByteBuf;readVector3f()Lorg/joml/Vector3f;
      intermediary method_49069 Lnet/minecraft/class_2540;method_49069()Lorg/joml/Vector3f;
      official i Lwm;i()Lorg/joml/Vector3f;
    • readVector3f

      public static Vector3f readVector3f(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readVector3f Lnet/minecraft/network/PacketByteBuf;readVector3f(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;
      intermediary method_56342 Lnet/minecraft/class_2540;method_56342(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;
      official c Lwm;c(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;
    • writeVector3f

      public void writeVector3f(Vector3f vector3f)
      Writes a Vector3f to this buf. A Vector3f is represented by three floats.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeVector3f Lnet/minecraft/network/PacketByteBuf;writeVector3f(Lorg/joml/Vector3f;)V
      intermediary method_49068 Lnet/minecraft/class_2540;method_49068(Lorg/joml/Vector3f;)V
      official a Lwm;a(Lorg/joml/Vector3f;)V
    • writeVector3f

      public static void writeVector3f(ByteBuf buf, Vector3f vector)
      Mappings:
      Namespace Name Mixin selector
      named writeVector3f Lnet/minecraft/network/PacketByteBuf;writeVector3f(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)V
      intermediary method_56339 Lnet/minecraft/class_2540;method_56339(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)V
    • readQuaternionf

      public Quaternionf readQuaternionf()
      Reads a Quaternionf from this buf. A Quaternionf is represented by four floats.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readQuaternionf Lnet/minecraft/network/PacketByteBuf;readQuaternionf()Lorg/joml/Quaternionf;
      intermediary method_49070 Lnet/minecraft/class_2540;method_49070()Lorg/joml/Quaternionf;
      official j Lwm;j()Lorg/joml/Quaternionf;
    • readQuaternionf

      public static Quaternionf readQuaternionf(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readQuaternionf Lnet/minecraft/network/PacketByteBuf;readQuaternionf(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;
      intermediary method_56343 Lnet/minecraft/class_2540;method_56343(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;
      official d Lwm;d(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;
    • writeQuaternionf

      public void writeQuaternionf(Quaternionf quaternionf)
      Writes a Quaternionf to this buf. A Quaternionf is represented by four floats.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeQuaternionf Lnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lorg/joml/Quaternionf;)V
      intermediary method_49067 Lnet/minecraft/class_2540;method_49067(Lorg/joml/Quaternionf;)V
      official a Lwm;a(Lorg/joml/Quaternionf;)V
    • writeQuaternionf

      public static void writeQuaternionf(ByteBuf buf, Quaternionf quaternion)
      Mappings:
      Namespace Name Mixin selector
      named writeQuaternionf Lnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)V
      intermediary method_56338 Lnet/minecraft/class_2540;method_56338(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)V
    • readVec3d

      public Vec3d readVec3d()
      Reads a Vec3d from this buf. A Vec3d is represented by four doubles.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readVec3d Lnet/minecraft/network/PacketByteBuf;readVec3d()Lnet/minecraft/util/math/Vec3d;
      intermediary method_52996 Lnet/minecraft/class_2540;method_52996()Lnet/minecraft/class_243;
      official k Lwm;k()Levt;
    • writeVec3d

      public void writeVec3d(Vec3d vec)
      Writes a Vec3d to this buf. A Vec3d is represented by four doubles.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeVec3d Lnet/minecraft/network/PacketByteBuf;writeVec3d(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_52955 Lnet/minecraft/class_2540;method_52955(Lnet/minecraft/class_243;)V
      official a Lwm;a(Levt;)V
    • readEnumConstant

      public <T extends Enum<T>> T readEnumConstant(Class<T> enumClass)
      Reads an enum constant from this buf. An enum constant is represented by a var int indicating its ordinal.
      Parameters:
      enumClass - the enum class, for constant lookup
      Returns:
      the read enum constant
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readEnumConstant Lnet/minecraft/network/PacketByteBuf;readEnumConstant(Ljava/lang/Class;)Ljava/lang/Enum;
      intermediary method_10818 Lnet/minecraft/class_2540;method_10818(Ljava/lang/Class;)Ljava/lang/Enum;
      official b Lwm;b(Ljava/lang/Class;)Ljava/lang/Enum;
    • writeEnumConstant

      public PacketByteBuf writeEnumConstant(Enum<?> instance)
      Writes an enum constant to this buf. An enum constant is represented by a var int indicating its ordinal.
      Parameters:
      instance - the enum constant to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeEnumConstant Lnet/minecraft/network/PacketByteBuf;writeEnumConstant(Ljava/lang/Enum;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10817 Lnet/minecraft/class_2540;method_10817(Ljava/lang/Enum;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/lang/Enum;)Lwm;
    • decode

      public <T> T decode(IntFunction<T> idToValue)
      Reads a var int representing an ID, then returns the value converted by idToValue.
      Parameters:
      idToValue - a function that gets the value from the integer ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/network/PacketByteBuf;decode(Ljava/util/function/IntFunction;)Ljava/lang/Object;
      intermediary method_52962 Lnet/minecraft/class_2540;method_52962(Ljava/util/function/IntFunction;)Ljava/lang/Object;
      official a Lwm;a(Ljava/util/function/IntFunction;)Ljava/lang/Object;
    • encode

      public <T> PacketByteBuf encode(ToIntFunction<T> valueToId, T value)
      Converts value to an integer representing its ID, then writes a var int representation of such ID.
      Parameters:
      valueToId - a function that gets the value's integer ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/network/PacketByteBuf;encode(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52963 Lnet/minecraft/class_2540;method_52963(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lwm;
    • readVarInt

      public int readVarInt()
      Reads a single var int from this buf.
      Returns:
      the value read
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readVarInt Lnet/minecraft/network/PacketByteBuf;readVarInt()I
      intermediary method_10816 Lnet/minecraft/class_2540;method_10816()I
      official l Lwm;l()I
    • readVarLong

      public long readVarLong()
      Reads a single var long from this buf.
      Returns:
      the value read
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readVarLong Lnet/minecraft/network/PacketByteBuf;readVarLong()J
      intermediary method_10792 Lnet/minecraft/class_2540;method_10792()J
      official m Lwm;m()J
    • writeUuid

      public PacketByteBuf writeUuid(UUID uuid)
      Writes a UUID (universally unique identifier) to this buf. A UUID is represented by two regular longs.
      Parameters:
      uuid - the UUID to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeUuid Lnet/minecraft/network/PacketByteBuf;writeUuid(Ljava/util/UUID;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10797 Lnet/minecraft/class_2540;method_10797(Ljava/util/UUID;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/util/UUID;)Lwm;
    • writeUuid

      public static void writeUuid(ByteBuf buf, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named writeUuid Lnet/minecraft/network/PacketByteBuf;writeUuid(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)V
      intermediary method_56337 Lnet/minecraft/class_2540;method_56337(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)V
    • readUuid

      public UUID readUuid()
      Reads a UUID (universally unique identifier) from this buf. A UUID is represented by two regular longs.
      Returns:
      the read UUID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readUuid Lnet/minecraft/network/PacketByteBuf;readUuid()Ljava/util/UUID;
      intermediary method_10790 Lnet/minecraft/class_2540;method_10790()Ljava/util/UUID;
      official n Lwm;n()Ljava/util/UUID;
    • readUuid

      public static UUID readUuid(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readUuid Lnet/minecraft/network/PacketByteBuf;readUuid(Lio/netty/buffer/ByteBuf;)Ljava/util/UUID;
      intermediary method_56344 Lnet/minecraft/class_2540;method_56344(Lio/netty/buffer/ByteBuf;)Ljava/util/UUID;
      official e Lwm;e(Lio/netty/buffer/ByteBuf;)Ljava/util/UUID;
    • writeVarInt

      public PacketByteBuf writeVarInt(int value)
      Writes a single var int to this buf.

      Compared to regular ints, var ints may use less bytes (ranging from 1 to 5, where regular ints use 4) when representing smaller positive numbers.

      Parameters:
      value - the value to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeVarInt Lnet/minecraft/network/PacketByteBuf;writeVarInt(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10804 Lnet/minecraft/class_2540;method_10804(I)Lnet/minecraft/class_2540;
      official c Lwm;c(I)Lwm;
    • writeVarLong

      public PacketByteBuf writeVarLong(long value)
      Writes a single var long to this buf.

      Compared to regular longs, var longs may use less bytes when representing smaller positive numbers.

      Parameters:
      value - the value to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeVarLong Lnet/minecraft/network/PacketByteBuf;writeVarLong(J)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10791 Lnet/minecraft/class_2540;method_10791(J)Lnet/minecraft/class_2540;
      official a Lwm;a(J)Lwm;
    • writeNbt

      Writes an NBT element to this buf. The binary representation of NBT is handled by NbtIo. If nbt is null, it is treated as an NBT null.
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the NBT cannot be written
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/network/PacketByteBuf;writeNbt(Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10794 Lnet/minecraft/class_2540;method_10794(Lnet/minecraft/class_2520;)Lnet/minecraft/class_2540;
      official a Lwm;a(Lvp;)Lwm;
    • writeNbt

      public static void writeNbt(ByteBuf buf, @Nullable @Nullable NbtElement nbt)
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/network/PacketByteBuf;writeNbt(Lio/netty/buffer/ByteBuf;Lnet/minecraft/nbt/NbtElement;)V
      intermediary method_56341 Lnet/minecraft/class_2540;method_56341(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2520;)V
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Lvp;)V
    • readNbt

      @Nullable public @Nullable NbtCompound readNbt()
      Reads an NBT compound from this buf. The binary representation of NBT is handled by NbtIo. If an NBT null is encountered, this method returns null. The compound can have a maximum size of 2097152 bytes.

      Note that unlike readNbt(NbtSizeTracker), this can only read compounds.

      Returns:
      the read compound, may be null
      Throws:
      EncoderException - if the NBT cannot be read
      NbtSizeValidationException - if the compound exceeds the allowed maximum size
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt()Lnet/minecraft/nbt/NbtCompound;
      intermediary method_10798 Lnet/minecraft/class_2540;method_10798()Lnet/minecraft/class_2487;
      official o Lwm;o()Lus;
    • readNbt

      @Nullable public static @Nullable NbtCompound readNbt(ByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_56345 Lnet/minecraft/class_2540;method_56345(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2487;
      official f Lwm;f(Lio/netty/buffer/ByteBuf;)Lus;
    • readNbt

      @Nullable public static @Nullable NbtElement readNbt(ByteBuf buf, NbtSizeTracker sizeTracker)
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt(Lio/netty/buffer/ByteBuf;Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/NbtElement;
      intermediary method_56340 Lnet/minecraft/class_2540;method_56340(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
      official a Lwm;a(Lio/netty/buffer/ByteBuf;Lvb;)Lvp;
    • readNbt

      @Nullable public @Nullable NbtElement readNbt(NbtSizeTracker sizeTracker)
      Reads an NBT element from this buf. The binary representation of NBT is handled by NbtIo. If an NBT null is encountered, this method returns null. The element can have a maximum size controlled by the sizeTracker.
      Returns:
      the read element, may be null
      Throws:
      EncoderException - if the NBT cannot be read
      NbtSizeValidationException - if the element exceeds the allowed maximum size
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt(Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/NbtElement;
      intermediary method_30616 Lnet/minecraft/class_2540;method_30616(Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
      official a Lwm;a(Lvb;)Lvp;
    • readString

      public String readString()
      Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length of 32767.
      Returns:
      the string read
      Throws:
      DecoderException - if the string read exceeds the maximum length
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readString Lnet/minecraft/network/PacketByteBuf;readString()Ljava/lang/String;
      intermediary method_19772 Lnet/minecraft/class_2540;method_19772()Ljava/lang/String;
      official p Lwm;p()Ljava/lang/String;
    • readString

      public String readString(int maxLength)
      Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length of maxLength.
      Parameters:
      maxLength - the maximum length of the string read
      Returns:
      the string read
      Throws:
      DecoderException - if the string read is longer than maxLength
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readString Lnet/minecraft/network/PacketByteBuf;readString(I)Ljava/lang/String;
      intermediary method_10800 Lnet/minecraft/class_2540;method_10800(I)Ljava/lang/String;
      official d Lwm;d(I)Ljava/lang/String;
    • writeString

      public PacketByteBuf writeString(String string)
      Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length of 32767.
      Parameters:
      string - the string to write
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the byte array of the string to write is longer than 32767
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeString Lnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10814 Lnet/minecraft/class_2540;method_10814(Ljava/lang/String;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/lang/String;)Lwm;
    • writeString

      public PacketByteBuf writeString(String string, int maxLength)
      Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length of maxLength.
      Parameters:
      maxLength - the max length of the byte array
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the byte array of the string to write is longer than maxLength
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeString Lnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10788 Lnet/minecraft/class_2540;method_10788(Ljava/lang/String;I)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/lang/String;I)Lwm;
    • readIdentifier

      public Identifier readIdentifier()
      Reads an identifier from this buf. An identifier is represented by its string form. The read identifier's string form can have a max length of 32767.
      Returns:
      the read identifier
      Throws:
      DecoderException - if the identifier's string form is longer than 32767
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readIdentifier Lnet/minecraft/network/PacketByteBuf;readIdentifier()Lnet/minecraft/util/Identifier;
      intermediary method_10810 Lnet/minecraft/class_2540;method_10810()Lnet/minecraft/class_2960;
      official q Lwm;q()Lalf;
    • writeIdentifier

      public PacketByteBuf writeIdentifier(Identifier id)
      Writes an identifier to this buf. An identifier is represented by its string form. The written identifier's byte array can have a max length of 32767.
      Parameters:
      id - the identifier to write
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the id's byte array is longer than 32767
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeIdentifier Lnet/minecraft/network/PacketByteBuf;writeIdentifier(Lnet/minecraft/util/Identifier;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10812 Lnet/minecraft/class_2540;method_10812(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2540;
      official a Lwm;a(Lalf;)Lwm;
    • readRegistryKey

      public <T> RegistryKey<T> readRegistryKey(RegistryKey<? extends Registry<T>> registryRef)
      Reads a registry key from this buf. A registry key is represented by its value as an identifier.
      Parameters:
      registryRef - the registry key of the registry the read registry key belongs to
      Returns:
      the read registry key
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readRegistryKey Lnet/minecraft/network/PacketByteBuf;readRegistryKey(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryKey;
      intermediary method_44112 Lnet/minecraft/class_2540;method_44112(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;
      official a Lwm;a(Lale;)Lale;
    • writeRegistryKey

      public void writeRegistryKey(RegistryKey<?> key)
      Writes a registry key to this buf. A registry key is represented by its value as an identifier.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeRegistryKey Lnet/minecraft/network/PacketByteBuf;writeRegistryKey(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_44116 Lnet/minecraft/class_2540;method_44116(Lnet/minecraft/class_5321;)V
      official b Lwm;b(Lale;)V
    • readRegistryRefKey

      public <T> RegistryKey<? extends Registry<T>> readRegistryRefKey()
      Reads a registry key referencing another registry key from this buf. Such key is represented by its value as an identifier.

      This is the same as readRegistryKey(Registries.ROOT). To read a registry key of a registered object (such as biomes), use readRegistryKey(RegistryKey).

      Returns:
      the read registry key
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readRegistryRefKey Lnet/minecraft/network/PacketByteBuf;readRegistryRefKey()Lnet/minecraft/registry/RegistryKey;
      intermediary method_53006 Lnet/minecraft/class_2540;method_53006()Lnet/minecraft/class_5321;
      official r Lwm;r()Lale;
    • readDate

      public Date readDate()
      Reads a date from this buf. A date is represented by its time, a regular long.
      Returns:
      the read date
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readDate Lnet/minecraft/network/PacketByteBuf;readDate()Ljava/util/Date;
      intermediary method_10802 Lnet/minecraft/class_2540;method_10802()Ljava/util/Date;
      official s Lwm;s()Ljava/util/Date;
    • writeDate

      public PacketByteBuf writeDate(Date date)
      Writes a date to this buf. A date is represented by its time, a regular long.
      Parameters:
      date - the date to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeDate Lnet/minecraft/network/PacketByteBuf;writeDate(Ljava/util/Date;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_10796 Lnet/minecraft/class_2540;method_10796(Ljava/util/Date;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/util/Date;)Lwm;
    • readInstant

      public Instant readInstant()
      Reads an instant from this buf. An instant is represented by the milliseconds since the epoch.
      Returns:
      the read instant
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readInstant Lnet/minecraft/network/PacketByteBuf;readInstant()Ljava/time/Instant;
      intermediary method_44118 Lnet/minecraft/class_2540;method_44118()Ljava/time/Instant;
      official t Lwm;t()Ljava/time/Instant;
    • writeInstant

      public void writeInstant(Instant instant)
      Writes an instant to this buf. An instant is represented by the milliseconds since the epoch.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeInstant Lnet/minecraft/network/PacketByteBuf;writeInstant(Ljava/time/Instant;)V
      intermediary method_44115 Lnet/minecraft/class_2540;method_44115(Ljava/time/Instant;)V
      official a Lwm;a(Ljava/time/Instant;)V
    • readPublicKey

      public PublicKey readPublicKey()
      Reads a public key from this buf. A public key is represented by a byte array of X.509-encoded payload.
      Returns:
      the read public key
      Throws:
      DecoderException - if the public key is malformed
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readPublicKey Lnet/minecraft/network/PacketByteBuf;readPublicKey()Ljava/security/PublicKey;
      intermediary method_44119 Lnet/minecraft/class_2540;method_44119()Ljava/security/PublicKey;
      official u Lwm;u()Ljava/security/PublicKey;
    • writePublicKey

      public PacketByteBuf writePublicKey(PublicKey publicKey)
      Writes a public key to this buf. A public key is represented by a byte array of X.509-encoded payload.
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writePublicKey Lnet/minecraft/network/PacketByteBuf;writePublicKey(Ljava/security/PublicKey;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_44114 Lnet/minecraft/class_2540;method_44114(Ljava/security/PublicKey;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/security/PublicKey;)Lwm;
    • readBlockHitResult

      public BlockHitResult readBlockHitResult()
      Reads a block hit result from this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.
      Returns:
      the read block hit result
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readBlockHitResult Lnet/minecraft/network/PacketByteBuf;readBlockHitResult()Lnet/minecraft/util/hit/BlockHitResult;
      intermediary method_17814 Lnet/minecraft/class_2540;method_17814()Lnet/minecraft/class_3965;
      official v Lwm;v()Levp;
    • writeBlockHitResult

      public void writeBlockHitResult(BlockHitResult hitResult)
      Writes a block hit result to this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.
      Parameters:
      hitResult - the block hit result to write
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeBlockHitResult Lnet/minecraft/network/PacketByteBuf;writeBlockHitResult(Lnet/minecraft/util/hit/BlockHitResult;)V
      intermediary method_17813 Lnet/minecraft/class_2540;method_17813(Lnet/minecraft/class_3965;)V
      official a Lwm;a(Levp;)V
    • readBitSet

      public BitSet readBitSet()
      Reads a bit set from this buf. A bit set is represented by a long array.
      Returns:
      the read bit set
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readBitSet Lnet/minecraft/network/PacketByteBuf;readBitSet()Ljava/util/BitSet;
      intermediary method_33558 Lnet/minecraft/class_2540;method_33558()Ljava/util/BitSet;
      official w Lwm;w()Ljava/util/BitSet;
    • writeBitSet

      public void writeBitSet(BitSet bitSet)
      Writes a bit set to this buf. A bit set is represented by a long array.
      Parameters:
      bitSet - the bit set to write
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeBitSet Lnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;)V
      intermediary method_33557 Lnet/minecraft/class_2540;method_33557(Ljava/util/BitSet;)V
      official a Lwm;a(Ljava/util/BitSet;)V
    • readBitSet

      public BitSet readBitSet(int size)
      Reads a bit set from this buf. A bit set is represented using its byte array representation.
      Parameters:
      size - the maximum size of the bit set
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readBitSet Lnet/minecraft/network/PacketByteBuf;readBitSet(I)Ljava/util/BitSet;
      intermediary method_46254 Lnet/minecraft/class_2540;method_46254(I)Ljava/util/BitSet;
      official e Lwm;e(I)Ljava/util/BitSet;
    • writeBitSet

      public void writeBitSet(BitSet bitSet, int size)
      Writes a bit set to this buf. A bit set is represented using its byte array representation.
      Parameters:
      size - the maximum size of the bit set
      Throws:
      EncoderException - if the bit set's length is above size
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeBitSet Lnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;I)V
      intermediary method_46252 Lnet/minecraft/class_2540;method_46252(Ljava/util/BitSet;I)V
      official a Lwm;a(Ljava/util/BitSet;I)V
    • isContiguous

      public boolean isContiguous()
      Overrides:
      isContiguous in class ByteBuf
    • maxFastWritableBytes

      public int maxFastWritableBytes()
      Overrides:
      maxFastWritableBytes in class ByteBuf
    • capacity

      public int capacity()
      Specified by:
      capacity in class ByteBuf
    • capacity

      public PacketByteBuf capacity(int int2)
      Specified by:
      capacity in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named capacity Lnet/minecraft/network/PacketByteBuf;capacity(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52986 Lnet/minecraft/class_2540;method_52986(I)Lnet/minecraft/class_2540;
      official f Lwm;f(I)Lwm;
    • maxCapacity

      public int maxCapacity()
      Specified by:
      maxCapacity in class ByteBuf
    • alloc

      public ByteBufAllocator alloc()
      Specified by:
      alloc in class ByteBuf
    • order

      public ByteOrder order()
      Specified by:
      order in class ByteBuf
    • order

      public ByteBuf order(ByteOrder byteOrder)
      Specified by:
      order in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named order Lnet/minecraft/network/PacketByteBuf;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
      intermediary order Lnet/minecraft/class_2540;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
      official order Lwm;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
    • unwrap

      public ByteBuf unwrap()
      Specified by:
      unwrap in class ByteBuf
    • isDirect

      public boolean isDirect()
      Specified by:
      isDirect in class ByteBuf
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in class ByteBuf
    • asReadOnly

      public ByteBuf asReadOnly()
      Specified by:
      asReadOnly in class ByteBuf
    • readerIndex

      public int readerIndex()
      Specified by:
      readerIndex in class ByteBuf
    • readerIndex

      public PacketByteBuf readerIndex(int int2)
      Specified by:
      readerIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readerIndex Lnet/minecraft/network/PacketByteBuf;readerIndex(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52988 Lnet/minecraft/class_2540;method_52988(I)Lnet/minecraft/class_2540;
      official g Lwm;g(I)Lwm;
    • writerIndex

      public int writerIndex()
      Specified by:
      writerIndex in class ByteBuf
    • writerIndex

      public PacketByteBuf writerIndex(int int2)
      Specified by:
      writerIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writerIndex Lnet/minecraft/network/PacketByteBuf;writerIndex(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52990 Lnet/minecraft/class_2540;method_52990(I)Lnet/minecraft/class_2540;
      official h Lwm;h(I)Lwm;
    • setIndex

      public PacketByteBuf setIndex(int int2, int int3)
      Specified by:
      setIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setIndex Lnet/minecraft/network/PacketByteBuf;setIndex(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52944 Lnet/minecraft/class_2540;method_52944(II)Lnet/minecraft/class_2540;
      official a Lwm;a(II)Lwm;
    • readableBytes

      public int readableBytes()
      Specified by:
      readableBytes in class ByteBuf
    • writableBytes

      public int writableBytes()
      Specified by:
      writableBytes in class ByteBuf
    • maxWritableBytes

      public int maxWritableBytes()
      Specified by:
      maxWritableBytes in class ByteBuf
    • isReadable

      public boolean isReadable()
      Specified by:
      isReadable in class ByteBuf
    • isReadable

      public boolean isReadable(int size)
      Specified by:
      isReadable in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named isReadable Lnet/minecraft/network/PacketByteBuf;isReadable(I)Z
      intermediary isReadable Lnet/minecraft/class_2540;isReadable(I)Z
      official isReadable Lwm;isReadable(I)Z
    • isWritable

      public boolean isWritable()
      Specified by:
      isWritable in class ByteBuf
    • isWritable

      public boolean isWritable(int size)
      Specified by:
      isWritable in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named isWritable Lnet/minecraft/network/PacketByteBuf;isWritable(I)Z
      intermediary isWritable Lnet/minecraft/class_2540;isWritable(I)Z
      official isWritable Lwm;isWritable(I)Z
    • clear

      public PacketByteBuf clear()
      Specified by:
      clear in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/network/PacketByteBuf;clear()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52931 Lnet/minecraft/class_2540;method_52931()Lnet/minecraft/class_2540;
      official x Lwm;x()Lwm;
    • markReaderIndex

      public PacketByteBuf markReaderIndex()
      Specified by:
      markReaderIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named markReaderIndex Lnet/minecraft/network/PacketByteBuf;markReaderIndex()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52932 Lnet/minecraft/class_2540;method_52932()Lnet/minecraft/class_2540;
      official y Lwm;y()Lwm;
    • resetReaderIndex

      public PacketByteBuf resetReaderIndex()
      Specified by:
      resetReaderIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named resetReaderIndex Lnet/minecraft/network/PacketByteBuf;resetReaderIndex()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52933 Lnet/minecraft/class_2540;method_52933()Lnet/minecraft/class_2540;
      official z Lwm;z()Lwm;
    • markWriterIndex

      public PacketByteBuf markWriterIndex()
      Specified by:
      markWriterIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named markWriterIndex Lnet/minecraft/network/PacketByteBuf;markWriterIndex()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52934 Lnet/minecraft/class_2540;method_52934()Lnet/minecraft/class_2540;
      official A Lwm;A()Lwm;
    • resetWriterIndex

      public PacketByteBuf resetWriterIndex()
      Specified by:
      resetWriterIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named resetWriterIndex Lnet/minecraft/network/PacketByteBuf;resetWriterIndex()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52935 Lnet/minecraft/class_2540;method_52935()Lnet/minecraft/class_2540;
      official B Lwm;B()Lwm;
    • discardReadBytes

      public PacketByteBuf discardReadBytes()
      Specified by:
      discardReadBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named discardReadBytes Lnet/minecraft/network/PacketByteBuf;discardReadBytes()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52936 Lnet/minecraft/class_2540;method_52936()Lnet/minecraft/class_2540;
      official C Lwm;C()Lwm;
    • discardSomeReadBytes

      public PacketByteBuf discardSomeReadBytes()
      Specified by:
      discardSomeReadBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named discardSomeReadBytes Lnet/minecraft/network/PacketByteBuf;discardSomeReadBytes()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52937 Lnet/minecraft/class_2540;method_52937()Lnet/minecraft/class_2540;
      official D Lwm;D()Lwm;
    • ensureWritable

      public PacketByteBuf ensureWritable(int int2)
      Specified by:
      ensureWritable in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named ensureWritable Lnet/minecraft/network/PacketByteBuf;ensureWritable(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52992 Lnet/minecraft/class_2540;method_52992(I)Lnet/minecraft/class_2540;
      official i Lwm;i(I)Lwm;
    • ensureWritable

      public int ensureWritable(int minBytes, boolean force)
      Specified by:
      ensureWritable in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named ensureWritable Lnet/minecraft/network/PacketByteBuf;ensureWritable(IZ)I
      intermediary ensureWritable Lnet/minecraft/class_2540;ensureWritable(IZ)I
      official ensureWritable Lwm;ensureWritable(IZ)I
    • getBoolean

      public boolean getBoolean(int index)
      Specified by:
      getBoolean in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBoolean Lnet/minecraft/network/PacketByteBuf;getBoolean(I)Z
      intermediary getBoolean Lnet/minecraft/class_2540;getBoolean(I)Z
      official getBoolean Lwm;getBoolean(I)Z
    • getByte

      public byte getByte(int index)
      Specified by:
      getByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getByte Lnet/minecraft/network/PacketByteBuf;getByte(I)B
      intermediary getByte Lnet/minecraft/class_2540;getByte(I)B
      official getByte Lwm;getByte(I)B
    • getUnsignedByte

      public short getUnsignedByte(int index)
      Specified by:
      getUnsignedByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedByte Lnet/minecraft/network/PacketByteBuf;getUnsignedByte(I)S
      intermediary getUnsignedByte Lnet/minecraft/class_2540;getUnsignedByte(I)S
      official getUnsignedByte Lwm;getUnsignedByte(I)S
    • getShort

      public short getShort(int index)
      Specified by:
      getShort in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getShort Lnet/minecraft/network/PacketByteBuf;getShort(I)S
      intermediary getShort Lnet/minecraft/class_2540;getShort(I)S
      official getShort Lwm;getShort(I)S
    • getShortLE

      public short getShortLE(int index)
      Specified by:
      getShortLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getShortLE Lnet/minecraft/network/PacketByteBuf;getShortLE(I)S
      intermediary getShortLE Lnet/minecraft/class_2540;getShortLE(I)S
      official getShortLE Lwm;getShortLE(I)S
    • getUnsignedShort

      public int getUnsignedShort(int index)
      Specified by:
      getUnsignedShort in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedShort Lnet/minecraft/network/PacketByteBuf;getUnsignedShort(I)I
      intermediary getUnsignedShort Lnet/minecraft/class_2540;getUnsignedShort(I)I
      official getUnsignedShort Lwm;getUnsignedShort(I)I
    • getUnsignedShortLE

      public int getUnsignedShortLE(int index)
      Specified by:
      getUnsignedShortLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedShortLE Lnet/minecraft/network/PacketByteBuf;getUnsignedShortLE(I)I
      intermediary getUnsignedShortLE Lnet/minecraft/class_2540;getUnsignedShortLE(I)I
      official getUnsignedShortLE Lwm;getUnsignedShortLE(I)I
    • getMedium

      public int getMedium(int index)
      Specified by:
      getMedium in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getMedium Lnet/minecraft/network/PacketByteBuf;getMedium(I)I
      intermediary getMedium Lnet/minecraft/class_2540;getMedium(I)I
      official getMedium Lwm;getMedium(I)I
    • getMediumLE

      public int getMediumLE(int index)
      Specified by:
      getMediumLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getMediumLE Lnet/minecraft/network/PacketByteBuf;getMediumLE(I)I
      intermediary getMediumLE Lnet/minecraft/class_2540;getMediumLE(I)I
      official getMediumLE Lwm;getMediumLE(I)I
    • getUnsignedMedium

      public int getUnsignedMedium(int index)
      Specified by:
      getUnsignedMedium in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedMedium Lnet/minecraft/network/PacketByteBuf;getUnsignedMedium(I)I
      intermediary getUnsignedMedium Lnet/minecraft/class_2540;getUnsignedMedium(I)I
      official getUnsignedMedium Lwm;getUnsignedMedium(I)I
    • getUnsignedMediumLE

      public int getUnsignedMediumLE(int index)
      Specified by:
      getUnsignedMediumLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedMediumLE Lnet/minecraft/network/PacketByteBuf;getUnsignedMediumLE(I)I
      intermediary getUnsignedMediumLE Lnet/minecraft/class_2540;getUnsignedMediumLE(I)I
      official getUnsignedMediumLE Lwm;getUnsignedMediumLE(I)I
    • getInt

      public int getInt(int index)
      Specified by:
      getInt in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getInt Lnet/minecraft/network/PacketByteBuf;getInt(I)I
      intermediary getInt Lnet/minecraft/class_2540;getInt(I)I
      official getInt Lwm;getInt(I)I
    • getIntLE

      public int getIntLE(int index)
      Specified by:
      getIntLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getIntLE Lnet/minecraft/network/PacketByteBuf;getIntLE(I)I
      intermediary getIntLE Lnet/minecraft/class_2540;getIntLE(I)I
      official getIntLE Lwm;getIntLE(I)I
    • getUnsignedInt

      public long getUnsignedInt(int index)
      Specified by:
      getUnsignedInt in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedInt Lnet/minecraft/network/PacketByteBuf;getUnsignedInt(I)J
      intermediary getUnsignedInt Lnet/minecraft/class_2540;getUnsignedInt(I)J
      official getUnsignedInt Lwm;getUnsignedInt(I)J
    • getUnsignedIntLE

      public long getUnsignedIntLE(int index)
      Specified by:
      getUnsignedIntLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getUnsignedIntLE Lnet/minecraft/network/PacketByteBuf;getUnsignedIntLE(I)J
      intermediary getUnsignedIntLE Lnet/minecraft/class_2540;getUnsignedIntLE(I)J
      official getUnsignedIntLE Lwm;getUnsignedIntLE(I)J
    • getLong

      public long getLong(int index)
      Specified by:
      getLong in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getLong Lnet/minecraft/network/PacketByteBuf;getLong(I)J
      intermediary getLong Lnet/minecraft/class_2540;getLong(I)J
      official getLong Lwm;getLong(I)J
    • getLongLE

      public long getLongLE(int index)
      Specified by:
      getLongLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getLongLE Lnet/minecraft/network/PacketByteBuf;getLongLE(I)J
      intermediary getLongLE Lnet/minecraft/class_2540;getLongLE(I)J
      official getLongLE Lwm;getLongLE(I)J
    • getChar

      public char getChar(int index)
      Specified by:
      getChar in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getChar Lnet/minecraft/network/PacketByteBuf;getChar(I)C
      intermediary getChar Lnet/minecraft/class_2540;getChar(I)C
      official getChar Lwm;getChar(I)C
    • getFloat

      public float getFloat(int index)
      Specified by:
      getFloat in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getFloat Lnet/minecraft/network/PacketByteBuf;getFloat(I)F
      intermediary getFloat Lnet/minecraft/class_2540;getFloat(I)F
      official getFloat Lwm;getFloat(I)F
    • getDouble

      public double getDouble(int index)
      Specified by:
      getDouble in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getDouble Lnet/minecraft/network/PacketByteBuf;getDouble(I)D
      intermediary getDouble Lnet/minecraft/class_2540;getDouble(I)D
      official getDouble Lwm;getDouble(I)D
    • getBytes

      public PacketByteBuf getBytes(int int2, ByteBuf byteBuf)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52946 Lnet/minecraft/class_2540;method_52946(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;
      official a Lwm;a(ILio/netty/buffer/ByteBuf;)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, ByteBuf byteBuf, int int3)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52947 Lnet/minecraft/class_2540;method_52947(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;
      official a Lwm;a(ILio/netty/buffer/ByteBuf;I)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, ByteBuf byteBuf, int int3, int int4)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52948 Lnet/minecraft/class_2540;method_52948(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;
      official a Lwm;a(ILio/netty/buffer/ByteBuf;II)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, byte[] byte2)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(I[B)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52952 Lnet/minecraft/class_2540;method_52952(I[B)Lnet/minecraft/class_2540;
      official a Lwm;a(I[B)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, byte[] byte2, int int3, int int4)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(I[BII)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52953 Lnet/minecraft/class_2540;method_52953(I[BII)Lnet/minecraft/class_2540;
      official a Lwm;a(I[BII)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, ByteBuffer byteBuffer)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52950 Lnet/minecraft/class_2540;method_52950(ILjava/nio/ByteBuffer;)Lnet/minecraft/class_2540;
      official a Lwm;a(ILjava/nio/ByteBuffer;)Lwm;
    • getBytes

      public PacketByteBuf getBytes(int int2, OutputStream outputStream, int int3) throws IOException
      Specified by:
      getBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/io/OutputStream;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52949 Lnet/minecraft/class_2540;method_52949(ILjava/io/OutputStream;I)Lnet/minecraft/class_2540;
      official a Lwm;a(ILjava/io/OutputStream;I)Lwm;
    • getBytes

      public int getBytes(int index, GatheringByteChannel channel, int length) throws IOException
      Specified by:
      getBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
      official getBytes Lwm;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
    • getBytes

      public int getBytes(int index, FileChannel channel, long pos, int length) throws IOException
      Specified by:
      getBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/FileChannel;JI)I
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/nio/channels/FileChannel;JI)I
      official getBytes Lwm;getBytes(ILjava/nio/channels/FileChannel;JI)I
    • getCharSequence

      public CharSequence getCharSequence(int index, int length, Charset charset)
      Specified by:
      getCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named getCharSequence Lnet/minecraft/network/PacketByteBuf;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      intermediary getCharSequence Lnet/minecraft/class_2540;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      official getCharSequence Lwm;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
    • setBoolean

      public PacketByteBuf setBoolean(int int2, boolean bool)
      Specified by:
      setBoolean in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBoolean Lnet/minecraft/network/PacketByteBuf;setBoolean(IZ)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52951 Lnet/minecraft/class_2540;method_52951(IZ)Lnet/minecraft/class_2540;
      official a Lwm;a(IZ)Lwm;
    • setByte

      public PacketByteBuf setByte(int int2, int int3)
      Specified by:
      setByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setByte Lnet/minecraft/network/PacketByteBuf;setByte(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52966 Lnet/minecraft/class_2540;method_52966(II)Lnet/minecraft/class_2540;
      official b Lwm;b(II)Lwm;
    • setShort

      public PacketByteBuf setShort(int int2, int int3)
      Specified by:
      setShort in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setShort Lnet/minecraft/network/PacketByteBuf;setShort(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52981 Lnet/minecraft/class_2540;method_52981(II)Lnet/minecraft/class_2540;
      official c Lwm;c(II)Lwm;
    • setShortLE

      public PacketByteBuf setShortLE(int int2, int int3)
      Specified by:
      setShortLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setShortLE Lnet/minecraft/network/PacketByteBuf;setShortLE(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52984 Lnet/minecraft/class_2540;method_52984(II)Lnet/minecraft/class_2540;
      official d Lwm;d(II)Lwm;
    • setMedium

      public PacketByteBuf setMedium(int int2, int int3)
      Specified by:
      setMedium in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setMedium Lnet/minecraft/network/PacketByteBuf;setMedium(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52985 Lnet/minecraft/class_2540;method_52985(II)Lnet/minecraft/class_2540;
      official e Lwm;e(II)Lwm;
    • setMediumLE

      public PacketByteBuf setMediumLE(int int2, int int3)
      Specified by:
      setMediumLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setMediumLE Lnet/minecraft/network/PacketByteBuf;setMediumLE(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52987 Lnet/minecraft/class_2540;method_52987(II)Lnet/minecraft/class_2540;
      official f Lwm;f(II)Lwm;
    • setInt

      public PacketByteBuf setInt(int int2, int int3)
      Specified by:
      setInt in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setInt Lnet/minecraft/network/PacketByteBuf;setInt(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52989 Lnet/minecraft/class_2540;method_52989(II)Lnet/minecraft/class_2540;
      official g Lwm;g(II)Lwm;
    • setIntLE

      public PacketByteBuf setIntLE(int int2, int int3)
      Specified by:
      setIntLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setIntLE Lnet/minecraft/network/PacketByteBuf;setIntLE(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52991 Lnet/minecraft/class_2540;method_52991(II)Lnet/minecraft/class_2540;
      official h Lwm;h(II)Lwm;
    • setLong

      public PacketByteBuf setLong(int int2, long long2)
      Specified by:
      setLong in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setLong Lnet/minecraft/network/PacketByteBuf;setLong(IJ)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52945 Lnet/minecraft/class_2540;method_52945(IJ)Lnet/minecraft/class_2540;
      official a Lwm;a(IJ)Lwm;
    • setLongLE

      public PacketByteBuf setLongLE(int int2, long long2)
      Specified by:
      setLongLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setLongLE Lnet/minecraft/network/PacketByteBuf;setLongLE(IJ)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52967 Lnet/minecraft/class_2540;method_52967(IJ)Lnet/minecraft/class_2540;
      official b Lwm;b(IJ)Lwm;
    • setChar

      public PacketByteBuf setChar(int int2, int int3)
      Specified by:
      setChar in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setChar Lnet/minecraft/network/PacketByteBuf;setChar(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52993 Lnet/minecraft/class_2540;method_52993(II)Lnet/minecraft/class_2540;
      official i Lwm;i(II)Lwm;
    • setFloat

      public PacketByteBuf setFloat(int int2, float float2)
      Specified by:
      setFloat in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setFloat Lnet/minecraft/network/PacketByteBuf;setFloat(IF)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52943 Lnet/minecraft/class_2540;method_52943(IF)Lnet/minecraft/class_2540;
      official a Lwm;a(IF)Lwm;
    • setDouble

      public PacketByteBuf setDouble(int int2, double double2)
      Specified by:
      setDouble in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setDouble Lnet/minecraft/network/PacketByteBuf;setDouble(ID)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52942 Lnet/minecraft/class_2540;method_52942(ID)Lnet/minecraft/class_2540;
      official a Lwm;a(ID)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, ByteBuf byteBuf)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52968 Lnet/minecraft/class_2540;method_52968(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;
      official b Lwm;b(ILio/netty/buffer/ByteBuf;)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, ByteBuf byteBuf, int int3)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52969 Lnet/minecraft/class_2540;method_52969(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;
      official b Lwm;b(ILio/netty/buffer/ByteBuf;I)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, ByteBuf byteBuf, int int3, int int4)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52970 Lnet/minecraft/class_2540;method_52970(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;
      official b Lwm;b(ILio/netty/buffer/ByteBuf;II)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, byte[] byte2)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(I[B)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52972 Lnet/minecraft/class_2540;method_52972(I[B)Lnet/minecraft/class_2540;
      official b Lwm;b(I[B)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, byte[] byte2, int int3, int int4)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(I[BII)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52973 Lnet/minecraft/class_2540;method_52973(I[BII)Lnet/minecraft/class_2540;
      official b Lwm;b(I[BII)Lwm;
    • setBytes

      public PacketByteBuf setBytes(int int2, ByteBuffer byteBuffer)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52971 Lnet/minecraft/class_2540;method_52971(ILjava/nio/ByteBuffer;)Lnet/minecraft/class_2540;
      official b Lwm;b(ILjava/nio/ByteBuffer;)Lwm;
    • setBytes

      public int setBytes(int index, InputStream stream, int length) throws IOException
      Specified by:
      setBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/io/InputStream;I)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/io/InputStream;I)I
      official setBytes Lwm;setBytes(ILjava/io/InputStream;I)I
    • setBytes

      public int setBytes(int index, ScatteringByteChannel channel, int length) throws IOException
      Specified by:
      setBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
      official setBytes Lwm;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
    • setBytes

      public int setBytes(int index, FileChannel channel, long pos, int length) throws IOException
      Specified by:
      setBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/FileChannel;JI)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/nio/channels/FileChannel;JI)I
      official setBytes Lwm;setBytes(ILjava/nio/channels/FileChannel;JI)I
    • setZero

      public PacketByteBuf setZero(int int2, int int3)
      Specified by:
      setZero in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setZero Lnet/minecraft/network/PacketByteBuf;setZero(II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52995 Lnet/minecraft/class_2540;method_52995(II)Lnet/minecraft/class_2540;
      official j Lwm;j(II)Lwm;
    • setCharSequence

      public int setCharSequence(int index, CharSequence sequence, Charset charset)
      Specified by:
      setCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named setCharSequence Lnet/minecraft/network/PacketByteBuf;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      intermediary setCharSequence Lnet/minecraft/class_2540;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      official setCharSequence Lwm;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
    • readBoolean

      public boolean readBoolean()
      Specified by:
      readBoolean in class ByteBuf
    • readByte

      public byte readByte()
      Specified by:
      readByte in class ByteBuf
    • readUnsignedByte

      public short readUnsignedByte()
      Specified by:
      readUnsignedByte in class ByteBuf
    • readShort

      public short readShort()
      Specified by:
      readShort in class ByteBuf
    • readShortLE

      public short readShortLE()
      Specified by:
      readShortLE in class ByteBuf
    • readUnsignedShort

      public int readUnsignedShort()
      Specified by:
      readUnsignedShort in class ByteBuf
    • readUnsignedShortLE

      public int readUnsignedShortLE()
      Specified by:
      readUnsignedShortLE in class ByteBuf
    • readMedium

      public int readMedium()
      Specified by:
      readMedium in class ByteBuf
    • readMediumLE

      public int readMediumLE()
      Specified by:
      readMediumLE in class ByteBuf
    • readUnsignedMedium

      public int readUnsignedMedium()
      Specified by:
      readUnsignedMedium in class ByteBuf
    • readUnsignedMediumLE

      public int readUnsignedMediumLE()
      Specified by:
      readUnsignedMediumLE in class ByteBuf
    • readInt

      public int readInt()
      Specified by:
      readInt in class ByteBuf
    • readIntLE

      public int readIntLE()
      Specified by:
      readIntLE in class ByteBuf
    • readUnsignedInt

      public long readUnsignedInt()
      Specified by:
      readUnsignedInt in class ByteBuf
    • readUnsignedIntLE

      public long readUnsignedIntLE()
      Specified by:
      readUnsignedIntLE in class ByteBuf
    • readLong

      public long readLong()
      Specified by:
      readLong in class ByteBuf
    • readLongLE

      public long readLongLE()
      Specified by:
      readLongLE in class ByteBuf
    • readChar

      public char readChar()
      Specified by:
      readChar in class ByteBuf
    • readFloat

      public float readFloat()
      Specified by:
      readFloat in class ByteBuf
    • readDouble

      public double readDouble()
      Specified by:
      readDouble in class ByteBuf
    • readBytes

      public ByteBuf readBytes(int length)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(I)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(I)Lio/netty/buffer/ByteBuf;
      official readBytes Lwm;readBytes(I)Lio/netty/buffer/ByteBuf;
    • readSlice

      public ByteBuf readSlice(int length)
      Specified by:
      readSlice in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readSlice Lnet/minecraft/network/PacketByteBuf;readSlice(I)Lio/netty/buffer/ByteBuf;
      intermediary readSlice Lnet/minecraft/class_2540;readSlice(I)Lio/netty/buffer/ByteBuf;
      official readSlice Lwm;readSlice(I)Lio/netty/buffer/ByteBuf;
    • readRetainedSlice

      public ByteBuf readRetainedSlice(int length)
      Specified by:
      readRetainedSlice in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readRetainedSlice Lnet/minecraft/network/PacketByteBuf;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;
      intermediary readRetainedSlice Lnet/minecraft/class_2540;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;
      official readRetainedSlice Lwm;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;
    • readBytes

      public PacketByteBuf readBytes(ByteBuf byteBuf)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52956 Lnet/minecraft/class_2540;method_52956(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;
      official g Lwm;g(Lio/netty/buffer/ByteBuf;)Lwm;
    • readBytes

      public PacketByteBuf readBytes(ByteBuf byteBuf, int int2)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52957 Lnet/minecraft/class_2540;method_52957(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;
      official b Lwm;b(Lio/netty/buffer/ByteBuf;I)Lwm;
    • readBytes

      public PacketByteBuf readBytes(ByteBuf byteBuf, int int2, int int3)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52958 Lnet/minecraft/class_2540;method_52958(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;
      official a Lwm;a(Lio/netty/buffer/ByteBuf;II)Lwm;
    • readBytes

      public PacketByteBuf readBytes(byte[] byte2)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes([B)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52979 Lnet/minecraft/class_2540;method_52979([B)Lnet/minecraft/class_2540;
      official b Lwm;b([B)Lwm;
    • readBytes

      public PacketByteBuf readBytes(byte[] byte2, int int2, int int3)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes([BII)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52965 Lnet/minecraft/class_2540;method_52965([BII)Lnet/minecraft/class_2540;
      official a Lwm;a([BII)Lwm;
    • readBytes

      public PacketByteBuf readBytes(ByteBuffer byteBuffer)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52961 Lnet/minecraft/class_2540;method_52961(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/nio/ByteBuffer;)Lwm;
    • readBytes

      public PacketByteBuf readBytes(OutputStream outputStream, int int2) throws IOException
      Specified by:
      readBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/io/OutputStream;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52959 Lnet/minecraft/class_2540;method_52959(Ljava/io/OutputStream;I)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/io/OutputStream;I)Lwm;
    • readBytes

      public int readBytes(GatheringByteChannel channel, int length) throws IOException
      Specified by:
      readBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
      official readBytes Lwm;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
    • readCharSequence

      public CharSequence readCharSequence(int length, Charset charset)
      Specified by:
      readCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named readCharSequence Lnet/minecraft/network/PacketByteBuf;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      intermediary readCharSequence Lnet/minecraft/class_2540;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      official readCharSequence Lwm;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
    • readBytes

      public int readBytes(FileChannel channel, long pos, int length) throws IOException
      Specified by:
      readBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/FileChannel;JI)I
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/nio/channels/FileChannel;JI)I
      official readBytes Lwm;readBytes(Ljava/nio/channels/FileChannel;JI)I
    • skipBytes

      public PacketByteBuf skipBytes(int int2)
      Specified by:
      skipBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named skipBytes Lnet/minecraft/network/PacketByteBuf;skipBytes(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52994 Lnet/minecraft/class_2540;method_52994(I)Lnet/minecraft/class_2540;
      official j Lwm;j(I)Lwm;
    • writeBoolean

      public PacketByteBuf writeBoolean(boolean bool)
      Specified by:
      writeBoolean in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBoolean Lnet/minecraft/network/PacketByteBuf;writeBoolean(Z)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52964 Lnet/minecraft/class_2540;method_52964(Z)Lnet/minecraft/class_2540;
      official a Lwm;a(Z)Lwm;
    • writeByte

      public PacketByteBuf writeByte(int int2)
      Specified by:
      writeByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeByte Lnet/minecraft/network/PacketByteBuf;writeByte(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52997 Lnet/minecraft/class_2540;method_52997(I)Lnet/minecraft/class_2540;
      official k Lwm;k(I)Lwm;
    • writeShort

      public PacketByteBuf writeShort(int int2)
      Specified by:
      writeShort in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeShort Lnet/minecraft/network/PacketByteBuf;writeShort(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52998 Lnet/minecraft/class_2540;method_52998(I)Lnet/minecraft/class_2540;
      official l Lwm;l(I)Lwm;
    • writeShortLE

      public PacketByteBuf writeShortLE(int int2)
      Specified by:
      writeShortLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeShortLE Lnet/minecraft/network/PacketByteBuf;writeShortLE(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52999 Lnet/minecraft/class_2540;method_52999(I)Lnet/minecraft/class_2540;
      official m Lwm;m(I)Lwm;
    • writeMedium

      public PacketByteBuf writeMedium(int int2)
      Specified by:
      writeMedium in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeMedium Lnet/minecraft/network/PacketByteBuf;writeMedium(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53000 Lnet/minecraft/class_2540;method_53000(I)Lnet/minecraft/class_2540;
      official n Lwm;n(I)Lwm;
    • writeMediumLE

      public PacketByteBuf writeMediumLE(int int2)
      Specified by:
      writeMediumLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeMediumLE Lnet/minecraft/network/PacketByteBuf;writeMediumLE(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53001 Lnet/minecraft/class_2540;method_53001(I)Lnet/minecraft/class_2540;
      official o Lwm;o(I)Lwm;
    • writeInt

      public PacketByteBuf writeInt(int int2)
      Specified by:
      writeInt in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeInt Lnet/minecraft/network/PacketByteBuf;writeInt(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53002 Lnet/minecraft/class_2540;method_53002(I)Lnet/minecraft/class_2540;
      official p Lwm;p(I)Lwm;
    • writeIntLE

      public PacketByteBuf writeIntLE(int int2)
      Specified by:
      writeIntLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeIntLE Lnet/minecraft/network/PacketByteBuf;writeIntLE(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53003 Lnet/minecraft/class_2540;method_53003(I)Lnet/minecraft/class_2540;
      official q Lwm;q(I)Lwm;
    • writeLong

      public PacketByteBuf writeLong(long long2)
      Specified by:
      writeLong in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeLong Lnet/minecraft/network/PacketByteBuf;writeLong(J)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52974 Lnet/minecraft/class_2540;method_52974(J)Lnet/minecraft/class_2540;
      official b Lwm;b(J)Lwm;
    • writeLongLE

      public PacketByteBuf writeLongLE(long long2)
      Specified by:
      writeLongLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeLongLE Lnet/minecraft/network/PacketByteBuf;writeLongLE(J)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52982 Lnet/minecraft/class_2540;method_52982(J)Lnet/minecraft/class_2540;
      official c Lwm;c(J)Lwm;
    • writeChar

      public PacketByteBuf writeChar(int int2)
      Specified by:
      writeChar in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeChar Lnet/minecraft/network/PacketByteBuf;writeChar(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53004 Lnet/minecraft/class_2540;method_53004(I)Lnet/minecraft/class_2540;
      official r Lwm;r(I)Lwm;
    • writeFloat

      public PacketByteBuf writeFloat(float float2)
      Specified by:
      writeFloat in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeFloat Lnet/minecraft/network/PacketByteBuf;writeFloat(F)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52941 Lnet/minecraft/class_2540;method_52941(F)Lnet/minecraft/class_2540;
      official a Lwm;a(F)Lwm;
    • writeDouble

      public PacketByteBuf writeDouble(double double2)
      Specified by:
      writeDouble in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeDouble Lnet/minecraft/network/PacketByteBuf;writeDouble(D)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52940 Lnet/minecraft/class_2540;method_52940(D)Lnet/minecraft/class_2540;
      official a Lwm;a(D)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(ByteBuf byteBuf)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52975 Lnet/minecraft/class_2540;method_52975(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;
      official h Lwm;h(Lio/netty/buffer/ByteBuf;)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(ByteBuf byteBuf, int int2)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52976 Lnet/minecraft/class_2540;method_52976(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;
      official c Lwm;c(Lio/netty/buffer/ByteBuf;I)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(ByteBuf byteBuf, int int2, int int3)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52977 Lnet/minecraft/class_2540;method_52977(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;
      official b Lwm;b(Lio/netty/buffer/ByteBuf;II)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(byte[] byte2)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes([B)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52983 Lnet/minecraft/class_2540;method_52983([B)Lnet/minecraft/class_2540;
      official c Lwm;c([B)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(byte[] byte2, int int2, int int3)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes([BII)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52980 Lnet/minecraft/class_2540;method_52980([BII)Lnet/minecraft/class_2540;
      official b Lwm;b([BII)Lwm;
    • writeBytes

      public PacketByteBuf writeBytes(ByteBuffer byteBuffer)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52978 Lnet/minecraft/class_2540;method_52978(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2540;
      official b Lwm;b(Ljava/nio/ByteBuffer;)Lwm;
    • writeBytes

      public int writeBytes(InputStream stream, int length) throws IOException
      Specified by:
      writeBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/io/InputStream;I)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/io/InputStream;I)I
      official writeBytes Lwm;writeBytes(Ljava/io/InputStream;I)I
    • writeBytes

      public int writeBytes(ScatteringByteChannel channel, int length) throws IOException
      Specified by:
      writeBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
      official writeBytes Lwm;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
    • writeBytes

      public int writeBytes(FileChannel channel, long pos, int length) throws IOException
      Specified by:
      writeBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/FileChannel;JI)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/FileChannel;JI)I
      official writeBytes Lwm;writeBytes(Ljava/nio/channels/FileChannel;JI)I
    • writeZero

      public PacketByteBuf writeZero(int int2)
      Specified by:
      writeZero in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeZero Lnet/minecraft/network/PacketByteBuf;writeZero(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53005 Lnet/minecraft/class_2540;method_53005(I)Lnet/minecraft/class_2540;
      official s Lwm;s(I)Lwm;
    • writeCharSequence

      public int writeCharSequence(CharSequence sequence, Charset charset)
      Specified by:
      writeCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named writeCharSequence Lnet/minecraft/network/PacketByteBuf;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      intermediary writeCharSequence Lnet/minecraft/class_2540;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      official writeCharSequence Lwm;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
    • indexOf

      public int indexOf(int from, int to, byte value)
      Specified by:
      indexOf in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named indexOf Lnet/minecraft/network/PacketByteBuf;indexOf(IIB)I
      intermediary indexOf Lnet/minecraft/class_2540;indexOf(IIB)I
      official indexOf Lwm;indexOf(IIB)I
    • bytesBefore

      public int bytesBefore(byte value)
      Specified by:
      bytesBefore in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named bytesBefore Lnet/minecraft/network/PacketByteBuf;bytesBefore(B)I
      intermediary bytesBefore Lnet/minecraft/class_2540;bytesBefore(B)I
      official bytesBefore Lwm;bytesBefore(B)I
    • bytesBefore

      public int bytesBefore(int length, byte value)
      Specified by:
      bytesBefore in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named bytesBefore Lnet/minecraft/network/PacketByteBuf;bytesBefore(IB)I
      intermediary bytesBefore Lnet/minecraft/class_2540;bytesBefore(IB)I
      official bytesBefore Lwm;bytesBefore(IB)I
    • bytesBefore

      public int bytesBefore(int index, int length, byte value)
      Specified by:
      bytesBefore in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named bytesBefore Lnet/minecraft/network/PacketByteBuf;bytesBefore(IIB)I
      intermediary bytesBefore Lnet/minecraft/class_2540;bytesBefore(IIB)I
      official bytesBefore Lwm;bytesBefore(IIB)I
    • forEachByte

      public int forEachByte(ByteProcessor byteProcessor)
      Specified by:
      forEachByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named forEachByte Lnet/minecraft/network/PacketByteBuf;forEachByte(Lio/netty/util/ByteProcessor;)I
      intermediary forEachByte Lnet/minecraft/class_2540;forEachByte(Lio/netty/util/ByteProcessor;)I
      official forEachByte Lwm;forEachByte(Lio/netty/util/ByteProcessor;)I
    • forEachByte

      public int forEachByte(int index, int length, ByteProcessor byteProcessor)
      Specified by:
      forEachByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named forEachByte Lnet/minecraft/network/PacketByteBuf;forEachByte(IILio/netty/util/ByteProcessor;)I
      intermediary forEachByte Lnet/minecraft/class_2540;forEachByte(IILio/netty/util/ByteProcessor;)I
      official forEachByte Lwm;forEachByte(IILio/netty/util/ByteProcessor;)I
    • forEachByteDesc

      public int forEachByteDesc(ByteProcessor byteProcessor)
      Specified by:
      forEachByteDesc in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named forEachByteDesc Lnet/minecraft/network/PacketByteBuf;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
      intermediary forEachByteDesc Lnet/minecraft/class_2540;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
      official forEachByteDesc Lwm;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
    • forEachByteDesc

      public int forEachByteDesc(int index, int length, ByteProcessor byteProcessor)
      Specified by:
      forEachByteDesc in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named forEachByteDesc Lnet/minecraft/network/PacketByteBuf;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
      intermediary forEachByteDesc Lnet/minecraft/class_2540;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
      official forEachByteDesc Lwm;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
    • copy

      public ByteBuf copy()
      Specified by:
      copy in class ByteBuf
    • copy

      public ByteBuf copy(int index, int length)
      Specified by:
      copy in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/network/PacketByteBuf;copy(II)Lio/netty/buffer/ByteBuf;
      intermediary copy Lnet/minecraft/class_2540;copy(II)Lio/netty/buffer/ByteBuf;
      official copy Lwm;copy(II)Lio/netty/buffer/ByteBuf;
    • slice

      public ByteBuf slice()
      Specified by:
      slice in class ByteBuf
    • retainedSlice

      public ByteBuf retainedSlice()
      Specified by:
      retainedSlice in class ByteBuf
    • slice

      public ByteBuf slice(int index, int length)
      Specified by:
      slice in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named slice Lnet/minecraft/network/PacketByteBuf;slice(II)Lio/netty/buffer/ByteBuf;
      intermediary slice Lnet/minecraft/class_2540;slice(II)Lio/netty/buffer/ByteBuf;
      official slice Lwm;slice(II)Lio/netty/buffer/ByteBuf;
    • retainedSlice

      public ByteBuf retainedSlice(int index, int length)
      Specified by:
      retainedSlice in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named retainedSlice Lnet/minecraft/network/PacketByteBuf;retainedSlice(II)Lio/netty/buffer/ByteBuf;
      intermediary retainedSlice Lnet/minecraft/class_2540;retainedSlice(II)Lio/netty/buffer/ByteBuf;
      official retainedSlice Lwm;retainedSlice(II)Lio/netty/buffer/ByteBuf;
    • duplicate

      public ByteBuf duplicate()
      Specified by:
      duplicate in class ByteBuf
    • retainedDuplicate

      public ByteBuf retainedDuplicate()
      Specified by:
      retainedDuplicate in class ByteBuf
    • nioBufferCount

      public int nioBufferCount()
      Specified by:
      nioBufferCount in class ByteBuf
    • nioBuffer

      public ByteBuffer nioBuffer()
      Specified by:
      nioBuffer in class ByteBuf
    • nioBuffer

      public ByteBuffer nioBuffer(int index, int length)
      Specified by:
      nioBuffer in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named nioBuffer Lnet/minecraft/network/PacketByteBuf;nioBuffer(II)Ljava/nio/ByteBuffer;
      intermediary nioBuffer Lnet/minecraft/class_2540;nioBuffer(II)Ljava/nio/ByteBuffer;
      official nioBuffer Lwm;nioBuffer(II)Ljava/nio/ByteBuffer;
    • internalNioBuffer

      public ByteBuffer internalNioBuffer(int index, int length)
      Specified by:
      internalNioBuffer in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named internalNioBuffer Lnet/minecraft/network/PacketByteBuf;internalNioBuffer(II)Ljava/nio/ByteBuffer;
      intermediary internalNioBuffer Lnet/minecraft/class_2540;internalNioBuffer(II)Ljava/nio/ByteBuffer;
      official internalNioBuffer Lwm;internalNioBuffer(II)Ljava/nio/ByteBuffer;
    • nioBuffers

      public ByteBuffer[] nioBuffers()
      Specified by:
      nioBuffers in class ByteBuf
    • nioBuffers

      public ByteBuffer[] nioBuffers(int index, int length)
      Specified by:
      nioBuffers in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named nioBuffers Lnet/minecraft/network/PacketByteBuf;nioBuffers(II)[Ljava/nio/ByteBuffer;
      intermediary nioBuffers Lnet/minecraft/class_2540;nioBuffers(II)[Ljava/nio/ByteBuffer;
      official nioBuffers Lwm;nioBuffers(II)[Ljava/nio/ByteBuffer;
    • hasArray

      public boolean hasArray()
      Specified by:
      hasArray in class ByteBuf
    • array

      public byte[] array()
      Specified by:
      array in class ByteBuf
    • arrayOffset

      public int arrayOffset()
      Specified by:
      arrayOffset in class ByteBuf
    • hasMemoryAddress

      public boolean hasMemoryAddress()
      Specified by:
      hasMemoryAddress in class ByteBuf
    • memoryAddress

      public long memoryAddress()
      Specified by:
      memoryAddress in class ByteBuf
    • toString

      public String toString(Charset charset)
      Specified by:
      toString in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named toString Lnet/minecraft/network/PacketByteBuf;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2540;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
      official toString Lwm;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
    • toString

      public String toString(int index, int length, Charset charset)
      Specified by:
      toString in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named toString Lnet/minecraft/network/PacketByteBuf;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2540;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
      official toString Lwm;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class ByteBuf
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/network/PacketByteBuf;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2540;equals(Ljava/lang/Object;)Z
      official equals Lwm;equals(Ljava/lang/Object;)Z
    • compareTo

      public int compareTo(ByteBuf byteBuf)
      Specified by:
      compareTo in interface Comparable<ByteBuf>
      Specified by:
      compareTo in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named compareTo Lnet/minecraft/network/PacketByteBuf;compareTo(Lio/netty/buffer/ByteBuf;)I
      intermediary compareTo Lnet/minecraft/class_2540;compareTo(Lio/netty/buffer/ByteBuf;)I
      official compareTo Lwm;compareTo(Lio/netty/buffer/ByteBuf;)I
    • toString

      public String toString()
      Specified by:
      toString in class ByteBuf
    • retain

      public PacketByteBuf retain(int int2)
      Specified by:
      retain in interface ReferenceCounted
      Specified by:
      retain in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named retain Lnet/minecraft/network/PacketByteBuf;retain(I)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_53007 Lnet/minecraft/class_2540;method_53007(I)Lnet/minecraft/class_2540;
      official t Lwm;t(I)Lwm;
    • retain

      public PacketByteBuf retain()
      Specified by:
      retain in interface ReferenceCounted
      Specified by:
      retain in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named retain Lnet/minecraft/network/PacketByteBuf;retain()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52938 Lnet/minecraft/class_2540;method_52938()Lnet/minecraft/class_2540;
      official E Lwm;E()Lwm;
    • touch

      public PacketByteBuf touch()
      Specified by:
      touch in interface ReferenceCounted
      Specified by:
      touch in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named touch Lnet/minecraft/network/PacketByteBuf;touch()Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52939 Lnet/minecraft/class_2540;method_52939()Lnet/minecraft/class_2540;
      official F Lwm;F()Lwm;
    • touch

      public PacketByteBuf touch(Object object)
      Specified by:
      touch in interface ReferenceCounted
      Specified by:
      touch in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      named touch Lnet/minecraft/network/PacketByteBuf;touch(Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;
      intermediary method_52960 Lnet/minecraft/class_2540;method_52960(Ljava/lang/Object;)Lnet/minecraft/class_2540;
      official a Lwm;a(Ljava/lang/Object;)Lwm;
    • refCnt

      public int refCnt()
    • release

      public boolean release()
    • release

      public boolean release(int decrement)
      Mappings:
      Namespace Name Mixin selector
      named release Lnet/minecraft/network/PacketByteBuf;release(I)Z
      intermediary release Lnet/minecraft/class_2540;release(I)Z
      official release Lwm;release(I)Z