Class PacketByteBuf

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

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-baseddecode(Codec)encode(Codec, Object)
Registry valuereadRegistryValue(IndexedIterable)writeRegistryValue(IndexedIterable, Object)
CollectionreadCollection(IntFunction, PacketByteBuf.PacketReader)writeCollection(Collection, PacketByteBuf.PacketWriter)
IntListreadIntList()writeIntList(IntList)
MapreadMap(IntFunction, PacketByteBuf.PacketReader, PacketByteBuf.PacketReader)writeMap(Map, PacketByteBuf.PacketWriter, PacketByteBuf.PacketWriter)
byte[]readByteArray()writeByteArray(byte[])
int[]readIntArray()writeIntArray(int[])
long[]readLongArray()writeLongArray(long[])
BlockPosreadBlockPos()writeBlockPos(BlockPos)
ChunkPosreadChunkPos()writeChunkPos(ChunkPos)
ChunkSectionPosreadChunkSectionPos()writeChunkSectionPos(ChunkSectionPos)
GlobalPosreadGlobalPos()writeGlobalPos(GlobalPos)
TextreadText()writeText(Text)
EnumreadEnumConstant(Class)writeEnumConstant(Enum)
VarIntreadVarInt()writeVarInt(int)
VarLongreadVarLong()writeVarLong(long)
UUIDreadUuid()writeUuid(UUID)
GameProfilereadGameProfile()writeGameProfile(GameProfile)
PropertyreadProperty()writeProperty(Property)
NbtCompoundreadNbt()writeNbt(NbtCompound)
ItemStackreadItemStack()writeItemStack(ItemStack)
StringreadString()writeString(String)
IdentifierreadIdentifier()writeIdentifier(Identifier)
RegistryKeyreadRegistryKey(RegistryKey)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)
EitherreadEither(PacketByteBuf.PacketReader, PacketByteBuf.PacketReader)writeEither(Either, PacketByteBuf.PacketWriter, 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
official qx
intermediary net/minecraft/class_2540
named net/minecraft/network/PacketByteBuf
  • Field Details

    • MAX_VAR_INT_LENGTH

      private static final int MAX_VAR_INT_LENGTH
      The max number of bytes an encoded var int value may use.

      Its value is 5. A regular int value always use 4 bytes in contrast.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lqx;c:I
      intermediary field_33285 Lnet/minecraft/class_2540;field_33285:I
      named MAX_VAR_INT_LENGTH Lnet/minecraft/network/PacketByteBuf;MAX_VAR_INT_LENGTH:I
    • MAX_VAR_LONG_LENGTH

      private static final int MAX_VAR_LONG_LENGTH
      The max number of bytes an encoded var long value may use.

      Its value is 10. A regular long value always use 8 bytes in contrast.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lqx;d:I
      intermediary field_33286 Lnet/minecraft/class_2540;field_33286:I
      named MAX_VAR_LONG_LENGTH Lnet/minecraft/network/PacketByteBuf;MAX_VAR_LONG_LENGTH:I
    • MAX_READ_NBT_SIZE

      private 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
      official e Lqx;e:I
      intermediary field_33287 Lnet/minecraft/class_2540;field_33287:I
      named MAX_READ_NBT_SIZE Lnet/minecraft/network/PacketByteBuf;MAX_READ_NBT_SIZE: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
      official a Lqx;a:S
      intermediary field_33283 Lnet/minecraft/class_2540;field_33283:S
      named DEFAULT_MAX_STRING_LENGTH Lnet/minecraft/network/PacketByteBuf;DEFAULT_MAX_STRING_LENGTH:S
    • MAX_TEXT_LENGTH

      public static final int MAX_TEXT_LENGTH
      The maximum size, in terms of JSON string length, allowed of the text read by readText() or written by writeText(Text).
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lqx;b:I
      intermediary field_33284 Lnet/minecraft/class_2540;field_33284:I
      named MAX_TEXT_LENGTH Lnet/minecraft/network/PacketByteBuf;MAX_TEXT_LENGTH:I
    • field_39381

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

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

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

      private final ByteBuf parent
      Mappings:
      Namespace Name Mixin selector
      official f Lqx;f:Lio/netty/buffer/ByteBuf;
      intermediary field_11695 Lnet/minecraft/class_2540;field_11695:Lio/netty/buffer/ByteBuf;
      named parent Lnet/minecraft/network/PacketByteBuf;parent: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
      official <init> Lqx;<init>(Lio/netty/buffer/ByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2540;<init>(Lio/netty/buffer/ByteBuf;)V
      named <init> Lnet/minecraft/network/PacketByteBuf;<init>(Lio/netty/buffer/ByteBuf;)V
  • Method Details

    • getVarIntLength

      public static int getVarIntLength(int value)
      Returns the number of bytes needed to encode value as a var int. Guaranteed to be between 1 and 5.
      Parameters:
      value - the value to encode
      Returns:
      the number of bytes a var int value uses
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(I)I
      intermediary method_10815 Lnet/minecraft/class_2540;method_10815(I)I
      named getVarIntLength Lnet/minecraft/network/PacketByteBuf;getVarIntLength(I)I
    • getVarLongLength

      public static int getVarLongLength(long value)
      Returns the number of bytes needed to encode value as a var long. Guaranteed to be between 1 and 10.
      Parameters:
      value - the value to encode
      Returns:
      the number of bytes a var long value uses
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(J)I
      intermediary method_36129 Lnet/minecraft/class_2540;method_36129(J)I
      named getVarLongLength Lnet/minecraft/network/PacketByteBuf;getVarLongLength(J)I
    • decode

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

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

      public <T> void writeRegistryValue(IndexedIterable<T> registry, T value)
      Writes a value from a registry (or other IndexedIterables). The value is stored using its raw ID as a var int.

      Callers must ensure that the registry (or the indexed iterable) is properly synchronized between the client and the server.

      Parameters:
      registry - the registry (or an indexed iterable) that contains the value
      value - a value to write, must be in registry
      Throws:
      IllegalArgumentException - if value is not in registry
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lhf;Ljava/lang/Object;)V
      intermediary method_42065 Lnet/minecraft/class_2540;method_42065(Lnet/minecraft/class_2359;Ljava/lang/Object;)V
      named writeRegistryValue Lnet/minecraft/network/PacketByteBuf;writeRegistryValue(Lnet/minecraft/util/collection/IndexedIterable;Ljava/lang/Object;)V
    • readRegistryValue

      @Nullable public <T> T readRegistryValue(IndexedIterable<T> registry)
      Reads a value from a registry (or other IndexedIterables). The value is stored using its raw ID as a var int.

      Callers must ensure that the registry (or the indexed iterable) is properly synchronized between the client and the server.

      Parameters:
      registry - the registry (or an indexed iterable) that contains the value
      Returns:
      the value, or null if it is missing from registry
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lhf;)Ljava/lang/Object;
      intermediary method_42064 Lnet/minecraft/class_2540;method_42064(Lnet/minecraft/class_2359;)Ljava/lang/Object;
      named readRegistryValue Lnet/minecraft/network/PacketByteBuf;readRegistryValue(Lnet/minecraft/util/collection/IndexedIterable;)Ljava/lang/Object;
    • getMaxValidator

      public static <T> IntFunction<T> getMaxValidator(IntFunction<T> applier, int max)
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(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;
      named getMaxValidator Lnet/minecraft/network/PacketByteBuf;getMaxValidator(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
    • readCollection

      public <T, C extends Collection<T>> C readCollection(IntFunction<C> collectionFactory, PacketByteBuf.PacketReader<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
      official a Lqx;a(Ljava/util/function/IntFunction;Lqx$a;)Ljava/util/Collection;
      intermediary method_34068 Lnet/minecraft/class_2540;method_34068(Ljava/util/function/IntFunction;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Collection;
      named readCollection Lnet/minecraft/network/PacketByteBuf;readCollection(Ljava/util/function/IntFunction;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Collection;
    • writeCollection

      public <T> void writeCollection(Collection<T> collection, PacketByteBuf.PacketWriter<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
      official a Lqx;a(Ljava/util/Collection;Lqx$b;)V
      intermediary method_34062 Lnet/minecraft/class_2540;method_34062(Ljava/util/Collection;Lnet/minecraft/class_2540$class_7462;)V
      named writeCollection Lnet/minecraft/network/PacketByteBuf;writeCollection(Ljava/util/Collection;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
    • readList

      public <T> List<T> readList(PacketByteBuf.PacketReader<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
      official a Lqx;a(Lqx$a;)Ljava/util/List;
      intermediary method_34066 Lnet/minecraft/class_2540;method_34066(Lnet/minecraft/class_2540$class_7461;)Ljava/util/List;
      named readList Lnet/minecraft/network/PacketByteBuf;readList(Lnet/minecraft/network/PacketByteBuf$PacketReader;)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
      official a Lqx;a()Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary method_34059 Lnet/minecraft/class_2540;method_34059()Lit/unimi/dsi/fastutil/ints/IntList;
      named readIntList Lnet/minecraft/network/PacketByteBuf;readIntList()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
      official a Lqx;a(Lit/unimi/dsi/fastutil/ints/IntList;)V
      intermediary method_34060 Lnet/minecraft/class_2540;method_34060(Lit/unimi/dsi/fastutil/ints/IntList;)V
      named writeIntList Lnet/minecraft/network/PacketByteBuf;writeIntList(Lit/unimi/dsi/fastutil/ints/IntList;)V
    • readMap

      public <K, V, M extends Map<K, V>> M readMap(IntFunction<M> mapFactory, PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<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
      official a Lqx;a(Ljava/util/function/IntFunction;Lqx$a;Lqx$a;)Ljava/util/Map;
      intermediary method_34069 Lnet/minecraft/class_2540;method_34069(Ljava/util/function/IntFunction;Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Map;
      named readMap Lnet/minecraft/network/PacketByteBuf;readMap(Ljava/util/function/IntFunction;Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Map;
    • readMap

      public <K, V> Map<K,V> readMap(PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<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
      official a Lqx;a(Lqx$a;Lqx$a;)Ljava/util/Map;
      intermediary method_34067 Lnet/minecraft/class_2540;method_34067(Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Map;
      named readMap Lnet/minecraft/network/PacketByteBuf;readMap(Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Map;
    • writeMap

      public <K, V> void writeMap(Map<K,V> map, PacketByteBuf.PacketWriter<K> keyWriter, PacketByteBuf.PacketWriter<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
      official a Lqx;a(Ljava/util/Map;Lqx$b;Lqx$b;)V
      intermediary method_34063 Lnet/minecraft/class_2540;method_34063(Ljava/util/Map;Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7462;)V
      named writeMap Lnet/minecraft/network/PacketByteBuf;writeMap(Ljava/util/Map;Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)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
      official a Lqx;a(Ljava/util/function/Consumer;)V
      intermediary method_34065 Lnet/minecraft/class_2540;method_34065(Ljava/util/function/Consumer;)V
      named forEachInCollection Lnet/minecraft/network/PacketByteBuf;forEachInCollection(Ljava/util/function/Consumer;)V
    • writeOptional

      public <T> void writeOptional(Optional<T> value, PacketByteBuf.PacketWriter<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
      official a Lqx;a(Ljava/util/Optional;Lqx$b;)V
      intermediary method_37435 Lnet/minecraft/class_2540;method_37435(Ljava/util/Optional;Lnet/minecraft/class_2540$class_7462;)V
      named writeOptional Lnet/minecraft/network/PacketByteBuf;writeOptional(Ljava/util/Optional;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
    • readOptional

      public <T> Optional<T> readOptional(PacketByteBuf.PacketReader<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
      official b Lqx;b(Lqx$a;)Ljava/util/Optional;
      intermediary method_37436 Lnet/minecraft/class_2540;method_37436(Lnet/minecraft/class_2540$class_7461;)Ljava/util/Optional;
      named readOptional Lnet/minecraft/network/PacketByteBuf;readOptional(Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Optional;
    • readNullable

      @Nullable public <T> T readNullable(PacketByteBuf.PacketReader<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
      official c Lqx;c(Lqx$a;)Ljava/lang/Object;
      intermediary method_43827 Lnet/minecraft/class_2540;method_43827(Lnet/minecraft/class_2540$class_7461;)Ljava/lang/Object;
      named readNullable Lnet/minecraft/network/PacketByteBuf;readNullable(Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/lang/Object;
    • writeNullable

      public <T> void writeNullable(@Nullable T value, PacketByteBuf.PacketWriter<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
      official a Lqx;a(Ljava/lang/Object;Lqx$b;)V
      intermediary method_43826 Lnet/minecraft/class_2540;method_43826(Ljava/lang/Object;Lnet/minecraft/class_2540$class_7462;)V
      named writeNullable Lnet/minecraft/network/PacketByteBuf;writeNullable(Ljava/lang/Object;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
    • writeEither

      public <L, R> void writeEither(com.mojang.datafixers.util.Either<L,R> either, PacketByteBuf.PacketWriter<L> leftWriter, PacketByteBuf.PacketWriter<R> rightWriter)
      Writes an Either to this buf. An either is represented by a boolean indicating if the left side or the right side of the either, followed by the value.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lcom/mojang/datafixers/util/Either;Lqx$b;Lqx$b;)V
      intermediary method_43619 Lnet/minecraft/class_2540;method_43619(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7462;)V
      named writeEither Lnet/minecraft/network/PacketByteBuf;writeEither(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
    • readEither

      public <L, R> com.mojang.datafixers.util.Either<L,R> readEither(PacketByteBuf.PacketReader<L> leftReader, PacketByteBuf.PacketReader<R> rightReader)
      Reads an Either from this buf. An either is represented by a boolean indicating if the left side or the right side of the either, followed by the value.
      Returns:
      the read either
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lqx;b(Lqx$a;Lqx$a;)Lcom/mojang/datafixers/util/Either;
      intermediary method_43622 Lnet/minecraft/class_2540;method_43622(Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Lcom/mojang/datafixers/util/Either;
      named readEither Lnet/minecraft/network/PacketByteBuf;readEither(Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Lcom/mojang/datafixers/util/Either;
    • 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
      official b Lqx;b()[B
      intermediary method_10795 Lnet/minecraft/class_2540;method_10795()[B
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray()[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
      official a Lqx;a([B)Lqx;
      intermediary method_10813 Lnet/minecraft/class_2540;method_10813([B)Lnet/minecraft/class_2540;
      named writeByteArray Lnet/minecraft/network/PacketByteBuf;writeByteArray([B)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official b Lqx;b(I)[B
      intermediary method_10803 Lnet/minecraft/class_2540;method_10803(I)[B
      named readByteArray Lnet/minecraft/network/PacketByteBuf;readByteArray(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
      official a Lqx;a([I)Lqx;
      intermediary method_10806 Lnet/minecraft/class_2540;method_10806([I)Lnet/minecraft/class_2540;
      named writeIntArray Lnet/minecraft/network/PacketByteBuf;writeIntArray([I)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official c Lqx;c()[I
      intermediary method_10787 Lnet/minecraft/class_2540;method_10787()[I
      named readIntArray Lnet/minecraft/network/PacketByteBuf;readIntArray()[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
      official c Lqx;c(I)[I
      intermediary method_10799 Lnet/minecraft/class_2540;method_10799(I)[I
      named readIntArray Lnet/minecraft/network/PacketByteBuf;readIntArray(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
      official a Lqx;a([J)Lqx;
      intermediary method_10789 Lnet/minecraft/class_2540;method_10789([J)Lnet/minecraft/class_2540;
      named writeLongArray Lnet/minecraft/network/PacketByteBuf;writeLongArray([J)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official d Lqx;d()[J
      intermediary method_33134 Lnet/minecraft/class_2540;method_33134()[J
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray()[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
      official b Lqx;b([J)[J
      intermediary method_10801 Lnet/minecraft/class_2540;method_10801([J)[J
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray([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
      official a Lqx;a([JI)[J
      intermediary method_10809 Lnet/minecraft/class_2540;method_10809([JI)[J
      named readLongArray Lnet/minecraft/network/PacketByteBuf;readLongArray([JI)[J
    • getWrittenBytes

      public byte[] getWrittenBytes()
      Returns an array of bytes of contents in this buf between index 0 and the writerIndex().
      Mappings:
      Namespace Name Mixin selector
      official e Lqx;e()[B
      intermediary method_36132 Lnet/minecraft/class_2540;method_36132()[B
      named getWrittenBytes Lnet/minecraft/network/PacketByteBuf;getWrittenBytes()[B
    • 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
      official f Lqx;f()Lgt;
      intermediary method_10811 Lnet/minecraft/class_2540;method_10811()Lnet/minecraft/class_2338;
      named readBlockPos Lnet/minecraft/network/PacketByteBuf;readBlockPos()Lnet/minecraft/util/math/BlockPos;
    • 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
      official a Lqx;a(Lgt;)Lqx;
      intermediary method_10807 Lnet/minecraft/class_2540;method_10807(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2540;
      named writeBlockPos Lnet/minecraft/network/PacketByteBuf;writeBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official g Lqx;g()Lcfh;
      intermediary method_36133 Lnet/minecraft/class_2540;method_36133()Lnet/minecraft/class_1923;
      named readChunkPos Lnet/minecraft/network/PacketByteBuf;readChunkPos()Lnet/minecraft/util/math/ChunkPos;
    • 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
      official a Lqx;a(Lcfh;)Lqx;
      intermediary method_36130 Lnet/minecraft/class_2540;method_36130(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2540;
      named writeChunkPos Lnet/minecraft/network/PacketByteBuf;writeChunkPos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official h Lqx;h()Lhq;
      intermediary method_19456 Lnet/minecraft/class_2540;method_19456()Lnet/minecraft/class_4076;
      named readChunkSectionPos Lnet/minecraft/network/PacketByteBuf;readChunkSectionPos()Lnet/minecraft/util/math/ChunkSectionPos;
    • 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
      official a Lqx;a(Lhq;)Lqx;
      intermediary method_36131 Lnet/minecraft/class_2540;method_36131(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2540;
      named writeChunkSectionPos Lnet/minecraft/network/PacketByteBuf;writeChunkSectionPos(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official i Lqx;i()Lhb;
      intermediary method_44117 Lnet/minecraft/class_2540;method_44117()Lnet/minecraft/class_4208;
      named readGlobalPos Lnet/minecraft/network/PacketByteBuf;readGlobalPos()Lnet/minecraft/util/math/GlobalPos;
    • 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
      official a Lqx;a(Lhb;)V
      intermediary method_44113 Lnet/minecraft/class_2540;method_44113(Lnet/minecraft/class_4208;)V
      named writeGlobalPos Lnet/minecraft/network/PacketByteBuf;writeGlobalPos(Lnet/minecraft/util/math/GlobalPos;)V
    • readText

      public Text readText()
      Reads a text from this buf. A text is represented by a JSON string with max length 262144.
      Returns:
      the read text
      Throws:
      DecoderException - if the JSON string read exceeds 262144 in length
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lqx;j()Lrm;
      intermediary method_10808 Lnet/minecraft/class_2540;method_10808()Lnet/minecraft/class_2561;
      named readText Lnet/minecraft/network/PacketByteBuf;readText()Lnet/minecraft/text/Text;
    • writeText

      public PacketByteBuf writeText(Text text)
      Writes a text to this buf. A text is represented by a JSON string with max length 262144.
      Parameters:
      text - the text to write
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the JSON string written exceeds 262144 in length
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lrm;)Lqx;
      intermediary method_10805 Lnet/minecraft/class_2540;method_10805(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2540;
      named writeText Lnet/minecraft/network/PacketByteBuf;writeText(Lnet/minecraft/text/Text;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official a Lqx;a(Ljava/lang/Class;)Ljava/lang/Enum;
      intermediary method_10818 Lnet/minecraft/class_2540;method_10818(Ljava/lang/Class;)Ljava/lang/Enum;
      named readEnumConstant Lnet/minecraft/network/PacketByteBuf;readEnumConstant(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
      official a Lqx;a(Ljava/lang/Enum;)Lqx;
      intermediary method_10817 Lnet/minecraft/class_2540;method_10817(Ljava/lang/Enum;)Lnet/minecraft/class_2540;
      named writeEnumConstant Lnet/minecraft/network/PacketByteBuf;writeEnumConstant(Ljava/lang/Enum;)Lnet/minecraft/network/PacketByteBuf;
    • readVarInt

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

      public long readVarLong()
      Reads a single var long from this buf.
      Returns:
      the value read
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lqx;l()J
      intermediary method_10792 Lnet/minecraft/class_2540;method_10792()J
      named readVarLong Lnet/minecraft/network/PacketByteBuf;readVarLong()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
      official a Lqx;a(Ljava/util/UUID;)Lqx;
      intermediary method_10797 Lnet/minecraft/class_2540;method_10797(Ljava/util/UUID;)Lnet/minecraft/class_2540;
      named writeUuid Lnet/minecraft/network/PacketByteBuf;writeUuid(Ljava/util/UUID;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official m Lqx;m()Ljava/util/UUID;
      intermediary method_10790 Lnet/minecraft/class_2540;method_10790()Ljava/util/UUID;
      named readUuid Lnet/minecraft/network/PacketByteBuf;readUuid()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
      official d Lqx;d(I)Lqx;
      intermediary method_10804 Lnet/minecraft/class_2540;method_10804(I)Lnet/minecraft/class_2540;
      named writeVarInt Lnet/minecraft/network/PacketByteBuf;writeVarInt(I)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official b Lqx;b(J)Lqx;
      intermediary method_10791 Lnet/minecraft/class_2540;method_10791(J)Lnet/minecraft/class_2540;
      named writeVarLong Lnet/minecraft/network/PacketByteBuf;writeVarLong(J)Lnet/minecraft/network/PacketByteBuf;
    • writeNbt

      public PacketByteBuf writeNbt(@Nullable @Nullable NbtCompound compound)
      Writes an NBT compound to this buf. The binary representation of NBT is handled by NbtIo. If compound is null, it is treated as an NBT null.
      Parameters:
      compound - the compound to write
      Returns:
      this buf, for chaining
      Throws:
      EncoderException - if the NBT cannot be written
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lpj;)Lqx;
      intermediary method_10794 Lnet/minecraft/class_2540;method_10794(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2540;
      named writeNbt Lnet/minecraft/network/PacketByteBuf;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/network/PacketByteBuf;
    • 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.
      Returns:
      the read compound, may be null
      Throws:
      EncoderException - if the NBT cannot be read
      RuntimeException - if the compound exceeds the allowed maximum size
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lqx;n()Lpj;
      intermediary method_10798 Lnet/minecraft/class_2540;method_10798()Lnet/minecraft/class_2487;
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt()Lnet/minecraft/nbt/NbtCompound;
    • readUnlimitedNbt

      @Nullable public @Nullable NbtCompound readUnlimitedNbt()
      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 does not have a size limit.
      Returns:
      the read compound, may be null
      Throws:
      EncoderException - if the NBT cannot be read
      See Also:
      API Note:
      Since this version does not have a size limit, it may be vulnerable to malicious NBT spam attacks.
      Mappings:
      Namespace Name Mixin selector
      official o Lqx;o()Lpj;
      intermediary method_30617 Lnet/minecraft/class_2540;method_30617()Lnet/minecraft/class_2487;
      named readUnlimitedNbt Lnet/minecraft/network/PacketByteBuf;readUnlimitedNbt()Lnet/minecraft/nbt/NbtCompound;
    • readNbt

      @Nullable public @Nullable NbtCompound readNbt(NbtTagSizeTracker sizeTracker)
      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 controlled by the sizeTracker.
      Returns:
      the read compound, may be null
      Throws:
      EncoderException - if the NBT cannot be read
      RuntimeException - if the compound exceeds the allowed maximum size
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lps;)Lpj;
      intermediary method_30616 Lnet/minecraft/class_2540;method_30616(Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;
      named readNbt Lnet/minecraft/network/PacketByteBuf;readNbt(Lnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtCompound;
    • writeItemStack

      public PacketByteBuf writeItemStack(ItemStack stack)
      Writes an item stack to this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.
      Parameters:
      stack - the stack to write
      Returns:
      this buf, for chaining
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lcaa;)Lqx;
      intermediary method_10793 Lnet/minecraft/class_2540;method_10793(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2540;
      named writeItemStack Lnet/minecraft/network/PacketByteBuf;writeItemStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/network/PacketByteBuf;
    • readItemStack

      public ItemStack readItemStack()
      Reads an item stack from this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.
      Returns:
      the read item stack
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lqx;p()Lcaa;
      intermediary method_10819 Lnet/minecraft/class_2540;method_10819()Lnet/minecraft/class_1799;
      named readItemStack Lnet/minecraft/network/PacketByteBuf;readItemStack()Lnet/minecraft/item/ItemStack;
    • 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
      official q Lqx;q()Ljava/lang/String;
      intermediary method_19772 Lnet/minecraft/class_2540;method_19772()Ljava/lang/String;
      named readString Lnet/minecraft/network/PacketByteBuf;readString()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
      official e Lqx;e(I)Ljava/lang/String;
      intermediary method_10800 Lnet/minecraft/class_2540;method_10800(I)Ljava/lang/String;
      named readString Lnet/minecraft/network/PacketByteBuf;readString(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
      official a Lqx;a(Ljava/lang/String;)Lqx;
      intermediary method_10814 Lnet/minecraft/class_2540;method_10814(Ljava/lang/String;)Lnet/minecraft/class_2540;
      named writeString Lnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;)Lnet/minecraft/network/PacketByteBuf;
    • 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:
      string - the string to write
      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
      official a Lqx;a(Ljava/lang/String;I)Lqx;
      intermediary method_10788 Lnet/minecraft/class_2540;method_10788(Ljava/lang/String;I)Lnet/minecraft/class_2540;
      named writeString Lnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;I)Lnet/minecraft/network/PacketByteBuf;
    • toEncodedStringLength

      private static int toEncodedStringLength(int decodedLength)
      Mappings:
      Namespace Name Mixin selector
      official f Lqx;f(I)I
      intermediary method_44302 Lnet/minecraft/class_2540;method_44302(I)I
      named toEncodedStringLength Lnet/minecraft/network/PacketByteBuf;toEncodedStringLength(I)I
    • 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
      official r Lqx;r()Laaj;
      intermediary method_10810 Lnet/minecraft/class_2540;method_10810()Lnet/minecraft/class_2960;
      named readIdentifier Lnet/minecraft/network/PacketByteBuf;readIdentifier()Lnet/minecraft/util/Identifier;
    • 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:
      the read identifier
      Throws:
      EncoderException - if the id's byte array is longer than 32767
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Laaj;)Lqx;
      intermediary method_10812 Lnet/minecraft/class_2540;method_10812(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2540;
      named writeIdentifier Lnet/minecraft/network/PacketByteBuf;writeIdentifier(Lnet/minecraft/util/Identifier;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official a Lqx;a(Laai;)Laai;
      intermediary method_44112 Lnet/minecraft/class_2540;method_44112(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;
      named readRegistryKey Lnet/minecraft/network/PacketByteBuf;readRegistryKey(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryKey;
    • 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
      official b Lqx;b(Laai;)V
      intermediary method_44116 Lnet/minecraft/class_2540;method_44116(Lnet/minecraft/class_5321;)V
      named writeRegistryKey Lnet/minecraft/network/PacketByteBuf;writeRegistryKey(Lnet/minecraft/util/registry/RegistryKey;)V
    • 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
      official s Lqx;s()Ljava/util/Date;
      intermediary method_10802 Lnet/minecraft/class_2540;method_10802()Ljava/util/Date;
      named readDate Lnet/minecraft/network/PacketByteBuf;readDate()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
      official a Lqx;a(Ljava/util/Date;)Lqx;
      intermediary method_10796 Lnet/minecraft/class_2540;method_10796(Ljava/util/Date;)Lnet/minecraft/class_2540;
      named writeDate Lnet/minecraft/network/PacketByteBuf;writeDate(Ljava/util/Date;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official t Lqx;t()Ljava/time/Instant;
      intermediary method_44118 Lnet/minecraft/class_2540;method_44118()Ljava/time/Instant;
      named readInstant Lnet/minecraft/network/PacketByteBuf;readInstant()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
      official a Lqx;a(Ljava/time/Instant;)V
      intermediary method_44115 Lnet/minecraft/class_2540;method_44115(Ljava/time/Instant;)V
      named writeInstant Lnet/minecraft/network/PacketByteBuf;writeInstant(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
      official u Lqx;u()Ljava/security/PublicKey;
      intermediary method_44119 Lnet/minecraft/class_2540;method_44119()Ljava/security/PublicKey;
      named readPublicKey Lnet/minecraft/network/PacketByteBuf;readPublicKey()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
      official a Lqx;a(Ljava/security/PublicKey;)Lqx;
      intermediary method_44114 Lnet/minecraft/class_2540;method_44114(Ljava/security/PublicKey;)Lnet/minecraft/class_2540;
      named writePublicKey Lnet/minecraft/network/PacketByteBuf;writePublicKey(Ljava/security/PublicKey;)Lnet/minecraft/network/PacketByteBuf;
    • 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
      official v Lqx;v()Ldvo;
      intermediary method_17814 Lnet/minecraft/class_2540;method_17814()Lnet/minecraft/class_3965;
      named readBlockHitResult Lnet/minecraft/network/PacketByteBuf;readBlockHitResult()Lnet/minecraft/util/hit/BlockHitResult;
    • 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
      official a Lqx;a(Ldvo;)V
      intermediary method_17813 Lnet/minecraft/class_2540;method_17813(Lnet/minecraft/class_3965;)V
      named writeBlockHitResult Lnet/minecraft/network/PacketByteBuf;writeBlockHitResult(Lnet/minecraft/util/hit/BlockHitResult;)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
      official w Lqx;w()Ljava/util/BitSet;
      intermediary method_33558 Lnet/minecraft/class_2540;method_33558()Ljava/util/BitSet;
      named readBitSet Lnet/minecraft/network/PacketByteBuf;readBitSet()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
      official a Lqx;a(Ljava/util/BitSet;)V
      intermediary method_33557 Lnet/minecraft/class_2540;method_33557(Ljava/util/BitSet;)V
      named writeBitSet Lnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;)V
    • readGameProfile

      public com.mojang.authlib.GameProfile readGameProfile()
      Reads a game profile from this buf. A game profile is represented by a uuid, a username string, and a collection of properties.
      Returns:
      the game profile
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official x Lqx;x()Lcom/mojang/authlib/GameProfile;
      intermediary method_43623 Lnet/minecraft/class_2540;method_43623()Lcom/mojang/authlib/GameProfile;
      named readGameProfile Lnet/minecraft/network/PacketByteBuf;readGameProfile()Lcom/mojang/authlib/GameProfile;
    • writeGameProfile

      public void writeGameProfile(com.mojang.authlib.GameProfile gameProfile)
      Writes a game profile to this buf. A game profile is represented by a uuid, a username string, and a collection of properties.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lcom/mojang/authlib/GameProfile;)V
      intermediary method_43616 Lnet/minecraft/class_2540;method_43616(Lcom/mojang/authlib/GameProfile;)V
      named writeGameProfile Lnet/minecraft/network/PacketByteBuf;writeGameProfile(Lcom/mojang/authlib/GameProfile;)V
    • readProperty

      public com.mojang.authlib.properties.Property readProperty()
      Reads a property from this buf. A property is represented by a string representing the property key, a string representing the property value, a boolean indicating whether the property is signed, and a string representing the signature (only exists if signed).
      Returns:
      the property
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official y Lqx;y()Lcom/mojang/authlib/properties/Property;
      intermediary method_43624 Lnet/minecraft/class_2540;method_43624()Lcom/mojang/authlib/properties/Property;
      named readProperty Lnet/minecraft/network/PacketByteBuf;readProperty()Lcom/mojang/authlib/properties/Property;
    • writeProperty

      public void writeProperty(com.mojang.authlib.properties.Property property)
      Writes a property to this buf. A property is represented by a string representing the property key, a string representing the property value, a boolean indicating whether the property is signed, and a string representing the signature (only exists if signed).
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lqx;a(Lcom/mojang/authlib/properties/Property;)V
      intermediary method_43617 Lnet/minecraft/class_2540;method_43617(Lcom/mojang/authlib/properties/Property;)V
      named writeProperty Lnet/minecraft/network/PacketByteBuf;writeProperty(Lcom/mojang/authlib/properties/Property;)V
    • capacity

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

      public ByteBuf capacity(int capacity)
      Specified by:
      capacity in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official capacity Lqx;capacity(I)Lio/netty/buffer/ByteBuf;
      intermediary capacity Lnet/minecraft/class_2540;capacity(I)Lio/netty/buffer/ByteBuf;
      named capacity Lnet/minecraft/network/PacketByteBuf;capacity(I)Lio/netty/buffer/ByteBuf;
    • 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
      official order Lqx;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
      intermediary order Lnet/minecraft/class_2540;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
      named order Lnet/minecraft/network/PacketByteBuf;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 ByteBuf readerIndex(int index)
      Specified by:
      readerIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official readerIndex Lqx;readerIndex(I)Lio/netty/buffer/ByteBuf;
      intermediary readerIndex Lnet/minecraft/class_2540;readerIndex(I)Lio/netty/buffer/ByteBuf;
      named readerIndex Lnet/minecraft/network/PacketByteBuf;readerIndex(I)Lio/netty/buffer/ByteBuf;
    • writerIndex

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

      public ByteBuf writerIndex(int index)
      Specified by:
      writerIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writerIndex Lqx;writerIndex(I)Lio/netty/buffer/ByteBuf;
      intermediary writerIndex Lnet/minecraft/class_2540;writerIndex(I)Lio/netty/buffer/ByteBuf;
      named writerIndex Lnet/minecraft/network/PacketByteBuf;writerIndex(I)Lio/netty/buffer/ByteBuf;
    • setIndex

      public ByteBuf setIndex(int readerIndex, int writerIndex)
      Specified by:
      setIndex in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setIndex Lqx;setIndex(II)Lio/netty/buffer/ByteBuf;
      intermediary setIndex Lnet/minecraft/class_2540;setIndex(II)Lio/netty/buffer/ByteBuf;
      named setIndex Lnet/minecraft/network/PacketByteBuf;setIndex(II)Lio/netty/buffer/ByteBuf;
    • 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
      official isReadable Lqx;isReadable(I)Z
      intermediary isReadable Lnet/minecraft/class_2540;isReadable(I)Z
      named isReadable Lnet/minecraft/network/PacketByteBuf;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
      official isWritable Lqx;isWritable(I)Z
      intermediary isWritable Lnet/minecraft/class_2540;isWritable(I)Z
      named isWritable Lnet/minecraft/network/PacketByteBuf;isWritable(I)Z
    • clear

      public ByteBuf clear()
      Specified by:
      clear in class ByteBuf
    • markReaderIndex

      public ByteBuf markReaderIndex()
      Specified by:
      markReaderIndex in class ByteBuf
    • resetReaderIndex

      public ByteBuf resetReaderIndex()
      Specified by:
      resetReaderIndex in class ByteBuf
    • markWriterIndex

      public ByteBuf markWriterIndex()
      Specified by:
      markWriterIndex in class ByteBuf
    • resetWriterIndex

      public ByteBuf resetWriterIndex()
      Specified by:
      resetWriterIndex in class ByteBuf
    • discardReadBytes

      public ByteBuf discardReadBytes()
      Specified by:
      discardReadBytes in class ByteBuf
    • discardSomeReadBytes

      public ByteBuf discardSomeReadBytes()
      Specified by:
      discardSomeReadBytes in class ByteBuf
    • ensureWritable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public ByteBuf getBytes(int index, ByteBuf buf)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
    • getBytes

      public ByteBuf getBytes(int index, ByteBuf buf, int length)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
    • getBytes

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

      public ByteBuf getBytes(int index, byte[] bytes)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(I[B)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(I[B)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(I[B)Lio/netty/buffer/ByteBuf;
    • getBytes

      public ByteBuf getBytes(int index, byte[] bytes, int outputIndex, int length)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(I[BII)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(I[BII)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(I[BII)Lio/netty/buffer/ByteBuf;
    • getBytes

      public ByteBuf getBytes(int index, ByteBuffer buf)
      Specified by:
      getBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
    • getBytes

      public ByteBuf getBytes(int index, OutputStream stream, int length) throws IOException
      Specified by:
      getBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official getBytes Lqx;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
      named getBytes Lnet/minecraft/network/PacketByteBuf;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
    • 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
      official getBytes Lqx;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
      named getBytes Lnet/minecraft/network/PacketByteBuf;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
      official getBytes Lqx;getBytes(ILjava/nio/channels/FileChannel;JI)I
      intermediary getBytes Lnet/minecraft/class_2540;getBytes(ILjava/nio/channels/FileChannel;JI)I
      named getBytes Lnet/minecraft/network/PacketByteBuf;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
      official getCharSequence Lqx;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      intermediary getCharSequence Lnet/minecraft/class_2540;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      named getCharSequence Lnet/minecraft/network/PacketByteBuf;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
    • setBoolean

      public ByteBuf setBoolean(int index, boolean value)
      Specified by:
      setBoolean in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBoolean Lqx;setBoolean(IZ)Lio/netty/buffer/ByteBuf;
      intermediary setBoolean Lnet/minecraft/class_2540;setBoolean(IZ)Lio/netty/buffer/ByteBuf;
      named setBoolean Lnet/minecraft/network/PacketByteBuf;setBoolean(IZ)Lio/netty/buffer/ByteBuf;
    • setByte

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

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

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

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

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

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

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

      public ByteBuf setLong(int index, long value)
      Specified by:
      setLong in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setLong Lqx;setLong(IJ)Lio/netty/buffer/ByteBuf;
      intermediary setLong Lnet/minecraft/class_2540;setLong(IJ)Lio/netty/buffer/ByteBuf;
      named setLong Lnet/minecraft/network/PacketByteBuf;setLong(IJ)Lio/netty/buffer/ByteBuf;
    • setLongLE

      public ByteBuf setLongLE(int index, long value)
      Specified by:
      setLongLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setLongLE Lqx;setLongLE(IJ)Lio/netty/buffer/ByteBuf;
      intermediary setLongLE Lnet/minecraft/class_2540;setLongLE(IJ)Lio/netty/buffer/ByteBuf;
      named setLongLE Lnet/minecraft/network/PacketByteBuf;setLongLE(IJ)Lio/netty/buffer/ByteBuf;
    • setChar

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

      public ByteBuf setFloat(int index, float value)
      Specified by:
      setFloat in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setFloat Lqx;setFloat(IF)Lio/netty/buffer/ByteBuf;
      intermediary setFloat Lnet/minecraft/class_2540;setFloat(IF)Lio/netty/buffer/ByteBuf;
      named setFloat Lnet/minecraft/network/PacketByteBuf;setFloat(IF)Lio/netty/buffer/ByteBuf;
    • setDouble

      public ByteBuf setDouble(int index, double value)
      Specified by:
      setDouble in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setDouble Lqx;setDouble(ID)Lio/netty/buffer/ByteBuf;
      intermediary setDouble Lnet/minecraft/class_2540;setDouble(ID)Lio/netty/buffer/ByteBuf;
      named setDouble Lnet/minecraft/network/PacketByteBuf;setDouble(ID)Lio/netty/buffer/ByteBuf;
    • setBytes

      public ByteBuf setBytes(int index, ByteBuf buf)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBytes Lqx;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
    • setBytes

      public ByteBuf setBytes(int index, ByteBuf buf, int length)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBytes Lqx;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
    • setBytes

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

      public ByteBuf setBytes(int index, byte[] bytes)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBytes Lqx;setBytes(I[B)Lio/netty/buffer/ByteBuf;
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(I[B)Lio/netty/buffer/ByteBuf;
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(I[B)Lio/netty/buffer/ByteBuf;
    • setBytes

      public ByteBuf setBytes(int index, byte[] bytes, int sourceIndex, int length)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBytes Lqx;setBytes(I[BII)Lio/netty/buffer/ByteBuf;
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(I[BII)Lio/netty/buffer/ByteBuf;
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(I[BII)Lio/netty/buffer/ByteBuf;
    • setBytes

      public ByteBuf setBytes(int index, ByteBuffer buf)
      Specified by:
      setBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setBytes Lqx;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
    • 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
      official setBytes Lqx;setBytes(ILjava/io/InputStream;I)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/io/InputStream;I)I
      named setBytes Lnet/minecraft/network/PacketByteBuf;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
      official setBytes Lqx;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
      named setBytes Lnet/minecraft/network/PacketByteBuf;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
      official setBytes Lqx;setBytes(ILjava/nio/channels/FileChannel;JI)I
      intermediary setBytes Lnet/minecraft/class_2540;setBytes(ILjava/nio/channels/FileChannel;JI)I
      named setBytes Lnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/FileChannel;JI)I
    • setZero

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

      public int setCharSequence(int index, CharSequence sequence, Charset charset)
      Specified by:
      setCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official setCharSequence Lqx;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      intermediary setCharSequence Lnet/minecraft/class_2540;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      named setCharSequence Lnet/minecraft/network/PacketByteBuf;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
      official readBytes Lqx;readBytes(I)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(I)Lio/netty/buffer/ByteBuf;
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(I)Lio/netty/buffer/ByteBuf;
    • readSlice

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

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

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

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

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

      public ByteBuf readBytes(byte[] bytes)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official readBytes Lqx;readBytes([B)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes([B)Lio/netty/buffer/ByteBuf;
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes([B)Lio/netty/buffer/ByteBuf;
    • readBytes

      public ByteBuf readBytes(byte[] bytes, int outputIndex, int length)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official readBytes Lqx;readBytes([BII)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes([BII)Lio/netty/buffer/ByteBuf;
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes([BII)Lio/netty/buffer/ByteBuf;
    • readBytes

      public ByteBuf readBytes(ByteBuffer buf)
      Specified by:
      readBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official readBytes Lqx;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
    • readBytes

      public ByteBuf readBytes(OutputStream stream, int length) throws IOException
      Specified by:
      readBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official readBytes Lqx;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
    • readBytes

      public int readBytes(GatheringByteChannel channel, int length) throws IOException
      Specified by:
      readBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official readBytes Lqx;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
      named readBytes Lnet/minecraft/network/PacketByteBuf;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
      official readCharSequence Lqx;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      intermediary readCharSequence Lnet/minecraft/class_2540;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
      named readCharSequence Lnet/minecraft/network/PacketByteBuf;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
      official readBytes Lqx;readBytes(Ljava/nio/channels/FileChannel;JI)I
      intermediary readBytes Lnet/minecraft/class_2540;readBytes(Ljava/nio/channels/FileChannel;JI)I
      named readBytes Lnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/FileChannel;JI)I
    • skipBytes

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

      public ByteBuf writeBoolean(boolean value)
      Specified by:
      writeBoolean in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeBoolean Lqx;writeBoolean(Z)Lio/netty/buffer/ByteBuf;
      intermediary writeBoolean Lnet/minecraft/class_2540;writeBoolean(Z)Lio/netty/buffer/ByteBuf;
      named writeBoolean Lnet/minecraft/network/PacketByteBuf;writeBoolean(Z)Lio/netty/buffer/ByteBuf;
    • writeByte

      public ByteBuf writeByte(int value)
      Specified by:
      writeByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeByte Lqx;writeByte(I)Lio/netty/buffer/ByteBuf;
      intermediary writeByte Lnet/minecraft/class_2540;writeByte(I)Lio/netty/buffer/ByteBuf;
      named writeByte Lnet/minecraft/network/PacketByteBuf;writeByte(I)Lio/netty/buffer/ByteBuf;
    • writeShort

      public ByteBuf writeShort(int value)
      Specified by:
      writeShort in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeShort Lqx;writeShort(I)Lio/netty/buffer/ByteBuf;
      intermediary writeShort Lnet/minecraft/class_2540;writeShort(I)Lio/netty/buffer/ByteBuf;
      named writeShort Lnet/minecraft/network/PacketByteBuf;writeShort(I)Lio/netty/buffer/ByteBuf;
    • writeShortLE

      public ByteBuf writeShortLE(int value)
      Specified by:
      writeShortLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeShortLE Lqx;writeShortLE(I)Lio/netty/buffer/ByteBuf;
      intermediary writeShortLE Lnet/minecraft/class_2540;writeShortLE(I)Lio/netty/buffer/ByteBuf;
      named writeShortLE Lnet/minecraft/network/PacketByteBuf;writeShortLE(I)Lio/netty/buffer/ByteBuf;
    • writeMedium

      public ByteBuf writeMedium(int value)
      Specified by:
      writeMedium in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeMedium Lqx;writeMedium(I)Lio/netty/buffer/ByteBuf;
      intermediary writeMedium Lnet/minecraft/class_2540;writeMedium(I)Lio/netty/buffer/ByteBuf;
      named writeMedium Lnet/minecraft/network/PacketByteBuf;writeMedium(I)Lio/netty/buffer/ByteBuf;
    • writeMediumLE

      public ByteBuf writeMediumLE(int value)
      Specified by:
      writeMediumLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeMediumLE Lqx;writeMediumLE(I)Lio/netty/buffer/ByteBuf;
      intermediary writeMediumLE Lnet/minecraft/class_2540;writeMediumLE(I)Lio/netty/buffer/ByteBuf;
      named writeMediumLE Lnet/minecraft/network/PacketByteBuf;writeMediumLE(I)Lio/netty/buffer/ByteBuf;
    • writeInt

      public ByteBuf writeInt(int value)
      Specified by:
      writeInt in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeInt Lqx;writeInt(I)Lio/netty/buffer/ByteBuf;
      intermediary writeInt Lnet/minecraft/class_2540;writeInt(I)Lio/netty/buffer/ByteBuf;
      named writeInt Lnet/minecraft/network/PacketByteBuf;writeInt(I)Lio/netty/buffer/ByteBuf;
    • writeIntLE

      public ByteBuf writeIntLE(int value)
      Specified by:
      writeIntLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeIntLE Lqx;writeIntLE(I)Lio/netty/buffer/ByteBuf;
      intermediary writeIntLE Lnet/minecraft/class_2540;writeIntLE(I)Lio/netty/buffer/ByteBuf;
      named writeIntLE Lnet/minecraft/network/PacketByteBuf;writeIntLE(I)Lio/netty/buffer/ByteBuf;
    • writeLong

      public ByteBuf writeLong(long value)
      Specified by:
      writeLong in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeLong Lqx;writeLong(J)Lio/netty/buffer/ByteBuf;
      intermediary writeLong Lnet/minecraft/class_2540;writeLong(J)Lio/netty/buffer/ByteBuf;
      named writeLong Lnet/minecraft/network/PacketByteBuf;writeLong(J)Lio/netty/buffer/ByteBuf;
    • writeLongLE

      public ByteBuf writeLongLE(long value)
      Specified by:
      writeLongLE in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeLongLE Lqx;writeLongLE(J)Lio/netty/buffer/ByteBuf;
      intermediary writeLongLE Lnet/minecraft/class_2540;writeLongLE(J)Lio/netty/buffer/ByteBuf;
      named writeLongLE Lnet/minecraft/network/PacketByteBuf;writeLongLE(J)Lio/netty/buffer/ByteBuf;
    • writeChar

      public ByteBuf writeChar(int value)
      Specified by:
      writeChar in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeChar Lqx;writeChar(I)Lio/netty/buffer/ByteBuf;
      intermediary writeChar Lnet/minecraft/class_2540;writeChar(I)Lio/netty/buffer/ByteBuf;
      named writeChar Lnet/minecraft/network/PacketByteBuf;writeChar(I)Lio/netty/buffer/ByteBuf;
    • writeFloat

      public ByteBuf writeFloat(float value)
      Specified by:
      writeFloat in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeFloat Lqx;writeFloat(F)Lio/netty/buffer/ByteBuf;
      intermediary writeFloat Lnet/minecraft/class_2540;writeFloat(F)Lio/netty/buffer/ByteBuf;
      named writeFloat Lnet/minecraft/network/PacketByteBuf;writeFloat(F)Lio/netty/buffer/ByteBuf;
    • writeDouble

      public ByteBuf writeDouble(double value)
      Specified by:
      writeDouble in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeDouble Lqx;writeDouble(D)Lio/netty/buffer/ByteBuf;
      intermediary writeDouble Lnet/minecraft/class_2540;writeDouble(D)Lio/netty/buffer/ByteBuf;
      named writeDouble Lnet/minecraft/network/PacketByteBuf;writeDouble(D)Lio/netty/buffer/ByteBuf;
    • writeBytes

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

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

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

      public ByteBuf writeBytes(byte[] bytes)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeBytes Lqx;writeBytes([B)Lio/netty/buffer/ByteBuf;
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes([B)Lio/netty/buffer/ByteBuf;
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes([B)Lio/netty/buffer/ByteBuf;
    • writeBytes

      public ByteBuf writeBytes(byte[] bytes, int sourceIndex, int length)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeBytes Lqx;writeBytes([BII)Lio/netty/buffer/ByteBuf;
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes([BII)Lio/netty/buffer/ByteBuf;
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes([BII)Lio/netty/buffer/ByteBuf;
    • writeBytes

      public ByteBuf writeBytes(ByteBuffer buf)
      Specified by:
      writeBytes in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeBytes Lqx;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
    • writeBytes

      public int writeBytes(InputStream stream, int length) throws IOException
      Specified by:
      writeBytes in class ByteBuf
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official writeBytes Lqx;writeBytes(Ljava/io/InputStream;I)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/io/InputStream;I)I
      named writeBytes Lnet/minecraft/network/PacketByteBuf;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
      official writeBytes Lqx;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
      named writeBytes Lnet/minecraft/network/PacketByteBuf;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
      official writeBytes Lqx;writeBytes(Ljava/nio/channels/FileChannel;JI)I
      intermediary writeBytes Lnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/FileChannel;JI)I
      named writeBytes Lnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/FileChannel;JI)I
    • writeZero

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

      public int writeCharSequence(CharSequence sequence, Charset charset)
      Specified by:
      writeCharSequence in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official writeCharSequence Lqx;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      intermediary writeCharSequence Lnet/minecraft/class_2540;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
      named writeCharSequence Lnet/minecraft/network/PacketByteBuf;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
      official indexOf Lqx;indexOf(IIB)I
      intermediary indexOf Lnet/minecraft/class_2540;indexOf(IIB)I
      named indexOf Lnet/minecraft/network/PacketByteBuf;indexOf(IIB)I
    • bytesBefore

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

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

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

      public int forEachByte(ByteProcessor byteProcessor)
      Specified by:
      forEachByte in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official forEachByte Lqx;forEachByte(Lio/netty/util/ByteProcessor;)I
      intermediary forEachByte Lnet/minecraft/class_2540;forEachByte(Lio/netty/util/ByteProcessor;)I
      named forEachByte Lnet/minecraft/network/PacketByteBuf;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
      official forEachByte Lqx;forEachByte(IILio/netty/util/ByteProcessor;)I
      intermediary forEachByte Lnet/minecraft/class_2540;forEachByte(IILio/netty/util/ByteProcessor;)I
      named forEachByte Lnet/minecraft/network/PacketByteBuf;forEachByte(IILio/netty/util/ByteProcessor;)I
    • forEachByteDesc

      public int forEachByteDesc(ByteProcessor byteProcessor)
      Specified by:
      forEachByteDesc in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official forEachByteDesc Lqx;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
      intermediary forEachByteDesc Lnet/minecraft/class_2540;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
      named forEachByteDesc Lnet/minecraft/network/PacketByteBuf;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
      official forEachByteDesc Lqx;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
      intermediary forEachByteDesc Lnet/minecraft/class_2540;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
      named forEachByteDesc Lnet/minecraft/network/PacketByteBuf;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
      official copy Lqx;copy(II)Lio/netty/buffer/ByteBuf;
      intermediary copy Lnet/minecraft/class_2540;copy(II)Lio/netty/buffer/ByteBuf;
      named copy Lnet/minecraft/network/PacketByteBuf;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
      official slice Lqx;slice(II)Lio/netty/buffer/ByteBuf;
      intermediary slice Lnet/minecraft/class_2540;slice(II)Lio/netty/buffer/ByteBuf;
      named slice Lnet/minecraft/network/PacketByteBuf;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
      official retainedSlice Lqx;retainedSlice(II)Lio/netty/buffer/ByteBuf;
      intermediary retainedSlice Lnet/minecraft/class_2540;retainedSlice(II)Lio/netty/buffer/ByteBuf;
      named retainedSlice Lnet/minecraft/network/PacketByteBuf;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
      official nioBuffer Lqx;nioBuffer(II)Ljava/nio/ByteBuffer;
      intermediary nioBuffer Lnet/minecraft/class_2540;nioBuffer(II)Ljava/nio/ByteBuffer;
      named nioBuffer Lnet/minecraft/network/PacketByteBuf;nioBuffer(II)Ljava/nio/ByteBuffer;
    • internalNioBuffer

      public ByteBuffer internalNioBuffer(int index, int length)
      Specified by:
      internalNioBuffer in class ByteBuf
      Mappings:
      Namespace Name Mixin selector
      official internalNioBuffer Lqx;internalNioBuffer(II)Ljava/nio/ByteBuffer;
      intermediary internalNioBuffer Lnet/minecraft/class_2540;internalNioBuffer(II)Ljava/nio/ByteBuffer;
      named internalNioBuffer Lnet/minecraft/network/PacketByteBuf;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
      official nioBuffers Lqx;nioBuffers(II)[Ljava/nio/ByteBuffer;
      intermediary nioBuffers Lnet/minecraft/class_2540;nioBuffers(II)[Ljava/nio/ByteBuffer;
      named nioBuffers Lnet/minecraft/network/PacketByteBuf;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
      official toString Lqx;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2540;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
      named toString Lnet/minecraft/network/PacketByteBuf;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
      official toString Lqx;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_2540;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
      named toString Lnet/minecraft/network/PacketByteBuf;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
      official equals Lqx;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2540;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/network/PacketByteBuf;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
      official compareTo Lqx;compareTo(Lio/netty/buffer/ByteBuf;)I
      intermediary compareTo Lnet/minecraft/class_2540;compareTo(Lio/netty/buffer/ByteBuf;)I
      named compareTo Lnet/minecraft/network/PacketByteBuf;compareTo(Lio/netty/buffer/ByteBuf;)I
    • toString

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

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

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

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

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

      public int refCnt()
    • release

      public boolean release()
    • release

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