Class PacketByteBuf
- All Implemented Interfaces:
- ByteBufConvertible,- ReferenceCounted,- Comparable<ByteBuf>
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 - sf- intermediary - net/minecraft/class_2540- named - net/minecraft/network/PacketByteBuf
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceA functional interface to read a value fromPacketByteBuf.static interfaceA functional interface to write a value toPacketByteBuf.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final shortprivate static final intprivate static final intprivate static final intprivate static final Gsonstatic final intThe maximum size, in number of bytes, allowed of the NBT compound read byreadNbt().static final intThe maximum size, in terms of JSON string length, allowed of the text read byreadText()or written bywriteText(Text).private static final intThe max number of bytes an encoded var int value may use.private static final intThe max number of bytes an encoded var long value may use.private final ByteBuf
- 
Constructor SummaryConstructorsConstructorDescriptionPacketByteBuf(ByteBuf parent) Creates a packet byte buf that delegates its operations to theparentbuf.
- 
Method SummaryModifier and TypeMethodDescriptionalloc()byte[]array()intintbytesBefore(byte value) intbytesBefore(int length, byte value) intbytesBefore(int index, int length, byte value) intcapacity()capacity(int capacity) clear()intcopy()copy(int index, int length) <T> Tdecode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec) Deprecated.<T> TdecodeAsJson(com.mojang.serialization.Codec<T> codec) Reads an object from this buf as a JSON element with the given codec.<T> voidencode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value) Deprecated.<T> voidencodeAsJson(com.mojang.serialization.Codec<T> codec, T value) Writes an object to this buf as a JSON element with the given codec.ensureWritable(int minBytes) intensureWritable(int minBytes, boolean force) booleanintforEachByte(int index, int length, ByteProcessor byteProcessor) intforEachByte(ByteProcessor byteProcessor) intforEachByteDesc(int index, int length, ByteProcessor byteProcessor) intforEachByteDesc(ByteProcessor byteProcessor) voidforEachInCollection(Consumer<PacketByteBuf> consumer) Iterates a collection from this buf.booleangetBoolean(int index) bytegetByte(int index) getBytes(int index, byte[] bytes) getBytes(int index, byte[] bytes, int outputIndex, int length) getBytes(int index, OutputStream stream, int length) getBytes(int index, ByteBuffer buf) intgetBytes(int index, FileChannel channel, long pos, int length) intgetBytes(int index, GatheringByteChannel channel, int length) chargetChar(int index) getCharSequence(int index, int length, Charset charset) doublegetDouble(int index) floatgetFloat(int index) intgetInt(int index) intgetIntLE(int index) longgetLong(int index) longgetLongLE(int index) static <T> IntFunction<T>getMaxValidator(IntFunction<T> applier, int max) intgetMedium(int index) intgetMediumLE(int index) shortgetShort(int index) shortgetShortLE(int index) shortgetUnsignedByte(int index) longgetUnsignedInt(int index) longgetUnsignedIntLE(int index) intgetUnsignedMedium(int index) intgetUnsignedMediumLE(int index) intgetUnsignedShort(int index) intgetUnsignedShortLE(int index) static intgetVarIntLength(int value) Returns the number of bytes needed to encodevalueas a var int.static intgetVarLongLength(long value) Returns the number of bytes needed to encodevalueas a var long.byte[]Returns an array of bytes of contents in this buf between index0and thewriterIndex().booleanhasArray()inthashCode()booleanintindexOf(int from, int to, byte value) internalNioBuffer(int index, int length) booleanisDirect()booleanbooleanisReadable(int size) booleanbooleanbooleanisWritable(int size) intintlongnioBuffer(int index, int length) intnioBuffers(int index, int length) order()intReads a bit set from this buf.readBitSet(int size) Reads a bit set from this buf.Reads a block hit result from this buf.Reads a block position from this buf.booleanbytereadByte()byte[]Reads an array of primitive bytes from this buf.byte[]readByteArray(int maxSize) Reads an array of primitive bytes from this buf.readBytes(byte[] bytes) readBytes(byte[] bytes, int outputIndex, int length) readBytes(int length) readBytes(OutputStream stream, int length) readBytes(ByteBuffer buf) intreadBytes(FileChannel channel, long pos, int length) intreadBytes(GatheringByteChannel channel, int length) charreadChar()readCharSequence(int length, Charset charset) Reads a chunk position from this buf.Reads a chunk section position from this buf.<T,C extends Collection<T>> 
 CreadCollection(IntFunction<C> collectionFactory, PacketByteBuf.PacketReader<T> reader) Reads a collection from this buf.readDate()Reads a date from this buf.double<L,R> com.mojang.datafixers.util.Either<L, R> readEither(PacketByteBuf.PacketReader<L> leftReader, PacketByteBuf.PacketReader<R> rightReader) Reads anEitherfrom this buf.<T extends Enum<T>>
 TreadEnumConstant(Class<T> enumClass) Reads an enum constant from this buf.readEnumSet(Class<E> type) Reads an enum set from this buf.intreaderIndex(int index) floatcom.mojang.authlib.GameProfileReads a game profile from this buf.Reads a global position from this buf.Reads an identifier from this buf.Reads an instant from this buf.intreadInt()int[]Reads an array of primitive ints from this buf.int[]readIntArray(int maxSize) Reads an array of primitive ints from this buf.intReads a list of primitive ints from this buf.Reads an item stack from this buf.<T> List<T>readList(PacketByteBuf.PacketReader<T> reader) Reads a collection from this buf as an array list.longreadLong()long[]Reads an array of primitive longs from this buf.long[]readLongArray(@org.jetbrains.annotations.Nullable long[] toArray) Reads an array of primitive longs from this buf.long[]readLongArray(@org.jetbrains.annotations.Nullable long[] toArray, int maxSize) Reads an array of primitive longs from this buf.long<K,V, M extends Map<K, V>> 
 MreadMap(IntFunction<M> mapFactory, PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<V> valueReader) Reads a map from this buf.<K,V> Map<K, V> readMap(PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<V> valueReader) Reads a map from this buf as a hash map.intintreadNbt()Reads an NBT compound from this buf.readNbt(NbtTagSizeTracker sizeTracker) Reads an NBT compound from this buf.<T> TreadNullable(PacketByteBuf.PacketReader<T> reader) Reads a nullable value from this buf.<T> Optional<T>readOptional(PacketByteBuf.PacketReader<T> reader) Reads an optional value from this buf.com.mojang.authlib.properties.PropertyReads a property from this buf.com.mojang.authlib.properties.PropertyMapReads an authlib property map from this buf.Reads a public key from this buf.Reads aQuaternionffrom this buf.<T> RegistryEntry<T>readRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, PacketByteBuf.PacketReader<T> reader) <T> RegistryKey<T>readRegistryKey(RegistryKey<? extends Registry<T>> registryRef) Reads a registry key from this buf.<T> TreadRegistryValue(IndexedIterable<T> registry) Reads a value from a registry (or otherIndexedIterables).readRetainedSlice(int length) shortshortreadSlice(int length) Reads a string from this buf.readString(int maxLength) Reads a string from this buf.readText()Reads a text from this buf.Reads an NBT compound from this buf.shortlonglongintintintintreadUuid()Reads a UUID (universally unique identifier) from this buf.intReads a single var int from this buf.longReads a single var long from this buf.Reads aVector3ffrom this buf.intrefCnt()booleanrelease()booleanrelease(int decrement) retain()retain(int int2) retainedSlice(int index, int length) setBoolean(int index, boolean value) setByte(int index, int value) setBytes(int index, byte[] bytes) setBytes(int index, byte[] bytes, int sourceIndex, int length) intsetBytes(int index, InputStream stream, int length) setBytes(int index, ByteBuffer buf) intsetBytes(int index, FileChannel channel, long pos, int length) intsetBytes(int index, ScatteringByteChannel channel, int length) setChar(int index, int value) intsetCharSequence(int index, CharSequence sequence, Charset charset) setDouble(int index, double value) setFloat(int index, float value) setIndex(int readerIndex, int writerIndex) setInt(int index, int value) setIntLE(int index, int value) setLong(int index, long value) setLongLE(int index, long value) setMedium(int index, int value) setMediumLE(int index, int value) setShort(int index, int value) setShortLE(int index, int value) setZero(int index, int length) skipBytes(int length) slice()slice(int index, int length) private static inttoEncodedStringLength(int decodedLength) toString()touch()unwrap()intvoidwriteBitSet(BitSet bitSet) Writes a bit set to this buf.voidwriteBitSet(BitSet bitSet, int size) Writes a bit set to this buf.voidwriteBlockHitResult(BlockHitResult hitResult) Writes a block hit result to this buf.writeBlockPos(BlockPos pos) Writes a block position to this buf.writeBoolean(boolean value) writeByte(int value) writeByteArray(byte[] array) Writes an array of primitive bytes to this buf.writeBytes(byte[] bytes) writeBytes(byte[] bytes, int sourceIndex, int length) writeBytes(ByteBuf buf) writeBytes(ByteBuf buf, int length) writeBytes(ByteBuf buf, int sourceIndex, int length) intwriteBytes(InputStream stream, int length) writeBytes(ByteBuffer buf) intwriteBytes(FileChannel channel, long pos, int length) intwriteBytes(ScatteringByteChannel channel, int length) writeChar(int value) intwriteCharSequence(CharSequence sequence, Charset charset) writeChunkPos(ChunkPos pos) Writes a chunk position to this buf.Reads a chunk section position from this buf.<T> voidwriteCollection(Collection<T> collection, PacketByteBuf.PacketWriter<T> writer) Writes a collection to this buf.Writes a date to this buf.writeDouble(double value) <L,R> void writeEither(com.mojang.datafixers.util.Either<L, R> either, PacketByteBuf.PacketWriter<L> leftWriter, PacketByteBuf.PacketWriter<R> rightWriter) Writes anEitherto this buf.writeEnumConstant(Enum<?> instance) Writes an enum constant to this buf.<E extends Enum<E>>
 voidwriteEnumSet(EnumSet<E> enumSet, Class<E> type) Writes an enum set to this buf.writeFloat(float value) voidwriteGameProfile(com.mojang.authlib.GameProfile gameProfile) Writes a game profile to this buf.voidwriteGlobalPos(GlobalPos pos) Writes a global position to this buf.Writes an identifier to this buf.voidwriteInstant(Instant instant) Writes an instant to this buf.writeInt(int value) writeIntArray(int[] array) Writes an array of primitive ints to this buf.writeIntLE(int value) voidwriteIntList(IntList list) Writes a list of primitive ints from this buf.writeItemStack(ItemStack stack) Writes an item stack to this buf.writeLong(long value) writeLongArray(long[] array) Writes an array of primitive longs to this buf.writeLongLE(long value) <K,V> void writeMap(Map<K, V> map, PacketByteBuf.PacketWriter<K> keyWriter, PacketByteBuf.PacketWriter<V> valueWriter) Writes a map to this buf.writeMedium(int value) writeMediumLE(int value) writeNbt(@Nullable NbtCompound compound) Writes an NBT compound to this buf.<T> voidwriteNullable(T value, PacketByteBuf.PacketWriter<T> writer) Writes a nullable value to this buf.<T> voidwriteOptional(Optional<T> value, PacketByteBuf.PacketWriter<T> writer) Writes an optional value to this buf.voidwriteProperty(com.mojang.authlib.properties.Property property) Writes a property to this buf.voidwritePropertyMap(com.mojang.authlib.properties.PropertyMap propertyMap) Writes an authlib property map to this buf.writePublicKey(PublicKey publicKey) Writes a public key to this buf.voidwriteQuaternionf(Quaternionf quaternionf) Writes aQuaternionfto this buf.<T> voidwriteRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, RegistryEntry<T> entry, PacketByteBuf.PacketWriter<T> writer) voidwriteRegistryKey(RegistryKey<?> key) Writes a registry key to this buf.<T> voidwriteRegistryValue(IndexedIterable<T> registry, T value) Writes a value from a registry (or otherIndexedIterables).intwriterIndex(int index) writeShort(int value) writeShortLE(int value) writeString(String string) Writes a string to this buf.writeString(String string, int maxLength) Writes a string to this buf.Writes a text to this buf.Writes a UUID (universally unique identifier) to this buf.writeVarInt(int value) Writes a single var int to this buf.writeVarLong(long value) Writes a single var long to this buf.voidwriteVector3f(Vector3f vector3f) Writes aVector3fto this buf.writeZero(int length) Methods inherited from class io.netty.buffer.ByteBufasByteBuf, getDoubleLE, getFloatLE, isContiguous, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
- 
Field Details- 
MAX_VAR_INT_LENGTHprivate static final int MAX_VAR_INT_LENGTHThe 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 - d- Lsf;d: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_LENGTHprivate static final int MAX_VAR_LONG_LENGTHThe 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 - e- Lsf;e: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_SIZEpublic static final int MAX_READ_NBT_SIZEThe maximum size, in number of bytes, allowed of the NBT compound read byreadNbt().- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a: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_LENGTHpublic static final short DEFAULT_MAX_STRING_LENGTHThe 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 - b- Lsf;b: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_LENGTHpublic static final int MAX_TEXT_LENGTHThe maximum size, in terms of JSON string length, allowed of the text read byreadText()or written bywriteText(Text).- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lsf;c:I- intermediary - field_33284- Lnet/minecraft/class_2540;field_33284:I- named - MAX_TEXT_LENGTH- Lnet/minecraft/network/PacketByteBuf;MAX_TEXT_LENGTH:I
 
- 
field_39381private static final int field_39381- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lsf;g:I- intermediary - field_39381- Lnet/minecraft/class_2540;field_39381:I- named - field_39381- Lnet/minecraft/network/PacketByteBuf;field_39381:I
 
- 
field_39382private static final int field_39382- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lsf;h:I- intermediary - field_39382- Lnet/minecraft/class_2540;field_39382:I- named - field_39382- Lnet/minecraft/network/PacketByteBuf;field_39382:I
 
- 
field_39383private static final int field_39383- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lsf;i:I- intermediary - field_39383- Lnet/minecraft/class_2540;field_39383:I- named - field_39383- Lnet/minecraft/network/PacketByteBuf;field_39383:I
 
- 
GSON- Mappings:
- Namespace - Name - Mixin selector - official - j- Lsf;j:Lcom/google/gson/Gson;- intermediary - field_42966- Lnet/minecraft/class_2540;field_42966:Lcom/google/gson/Gson;- named - GSON- Lnet/minecraft/network/PacketByteBuf;GSON:Lcom/google/gson/Gson;
 
- 
parent- Mappings:
- Namespace - Name - Mixin selector - official - f- Lsf;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- 
PacketByteBufCreates a packet byte buf that delegates its operations to theparentbuf.- Parameters:
- parent- the parent, or delegate, buf
- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lsf;<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- 
getVarIntLengthpublic static int getVarIntLength(int value) - Parameters:
- value- the value to encode
- Returns:
- the number of bytes a var int valueuses
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(I)I- intermediary - method_10815- Lnet/minecraft/class_2540;method_10815(I)I- named - getVarIntLength- Lnet/minecraft/network/PacketByteBuf;getVarIntLength(I)I
 
- 
getVarLongLengthpublic static int getVarLongLength(long value) Returns the number of bytes needed to encodevalueas a var long. Guaranteed to be between1and 10.- Parameters:
- value- the value to encode
- Returns:
- the number of bytes a var long valueuses
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(J)I- intermediary - method_36129- Lnet/minecraft/class_2540;method_36129(J)I- named - getVarLongLength- Lnet/minecraft/network/PacketByteBuf;getVarLongLength(J)I
 
- 
decode@Deprecated public <T> T decode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec) Deprecated.Reads an object from this buf as a compound NBT with the given codec.- Type Parameters:
- T- the decoded object's type
- Returns:
- the read object
- Throws:
- EncoderException- if the- codecfails to decode the compound NBT
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;- intermediary - method_29171- Lnet/minecraft/class_2540;method_29171(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;- named - decode- Lnet/minecraft/network/PacketByteBuf;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
 
- 
encode@Deprecated public <T> void encode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value) Deprecated.Writes an object to this buf as a compound NBT with the given codec.- Type Parameters:
- T- the encoded object's type
- Throws:
- EncoderException- if the- codecfails to encode the compound NBT
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V- intermediary - method_29172- Lnet/minecraft/class_2540;method_29172(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V- named - encode- Lnet/minecraft/network/PacketByteBuf;encode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
 
- 
decodeAsJsonpublic <T> T decodeAsJson(com.mojang.serialization.Codec<T> codec) Reads an object from this buf as a JSON element with the given codec.- Type Parameters:
- T- the decoded object's type
- Returns:
- the read object
- Throws:
- EncoderException- if the- codecfails to decode the JSON element
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;- intermediary - method_49394- Lnet/minecraft/class_2540;method_49394(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;- named - decodeAsJson- Lnet/minecraft/network/PacketByteBuf;decodeAsJson(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
 
- 
encodeAsJsonpublic <T> void encodeAsJson(com.mojang.serialization.Codec<T> codec, T value) Writes an object to this buf as a JSON element with the given codec.- Type Parameters:
- T- the encoded object's type
- Throws:
- EncoderException- if the- codecfails to encode the JSON element
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V- intermediary - method_49395- Lnet/minecraft/class_2540;method_49395(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V- named - encodeAsJson- Lnet/minecraft/network/PacketByteBuf;encodeAsJson(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
 
- 
writeRegistryValueWrites a value from a registry (or otherIndexedIterables). 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- valueis not in- registry
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lhj;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
 
- 
writeRegistryEntrypublic <T> void writeRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, RegistryEntry<T> entry, PacketByteBuf.PacketWriter<T> writer) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lhj;Lhe;Lsf$b;)V- intermediary - method_47989- Lnet/minecraft/class_2540;method_47989(Lnet/minecraft/class_2359;Lnet/minecraft/class_6880;Lnet/minecraft/class_2540$class_7462;)V- named - writeRegistryEntry- Lnet/minecraft/network/PacketByteBuf;writeRegistryEntry(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
 
- 
readRegistryValueReads a value from a registry (or otherIndexedIterables). 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 nullif it is missing fromregistry
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lhj;)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;
 
- 
readRegistryEntrypublic <T> RegistryEntry<T> readRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, PacketByteBuf.PacketReader<T> reader) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lhj;Lsf$a;)Lhe;- intermediary - method_47990- Lnet/minecraft/class_2540;method_47990(Lnet/minecraft/class_2359;Lnet/minecraft/class_2540$class_7461;)Lnet/minecraft/class_6880;- named - readRegistryEntry- Lnet/minecraft/network/PacketByteBuf;readRegistryEntry(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
getMaxValidator- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;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;
 
- 
readCollectionpublic <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- Lsf;a(Ljava/util/function/IntFunction;Lsf$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;
 
- 
writeCollectionWrites 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- Lsf;a(Ljava/util/Collection;Lsf$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
 
- 
readListReads 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- Lsf;a(Lsf$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;
 
- 
readIntListReads 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- Lsf;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;
 
- 
writeIntListWrites 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- Lsf;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
 
- 
readMappublic <K,V, M readMapM extends Map<K, V>> (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- Lsf;a(Ljava/util/function/IntFunction;Lsf$a;Lsf$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;
 
- 
readMappublic <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- Lsf;a(Lsf$a;Lsf$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;
 
- 
writeMappublic <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- Lsf;a(Ljava/util/Map;Lsf$b;Lsf$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
 
- 
forEachInCollectionIterates a collection from this buf. The collection is stored as a leading var intsizefollowed by the entries sequentially. Theconsumerwill be calledsizetimes.- Parameters:
- consumer- the consumer to read entries
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;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
 
- 
writeEnumSetWrites an enum set to this buf. An enum set is represented by a bit set that indicates whether each element is in the set.- Parameters:
- type- the type of the enum
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Ljava/util/EnumSet;Ljava/lang/Class;)V- intermediary - method_46253- Lnet/minecraft/class_2540;method_46253(Ljava/util/EnumSet;Ljava/lang/Class;)V- named - writeEnumSet- Lnet/minecraft/network/PacketByteBuf;writeEnumSet(Ljava/util/EnumSet;Ljava/lang/Class;)V
 
- 
readEnumSetReads an enum set from this buf. An enum set is represented by a bit set that indicates whether each element is in the set.- Parameters:
- type- the type of the enum
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Ljava/lang/Class;)Ljava/util/EnumSet;- intermediary - method_46251- Lnet/minecraft/class_2540;method_46251(Ljava/lang/Class;)Ljava/util/EnumSet;- named - readEnumSet- Lnet/minecraft/network/PacketByteBuf;readEnumSet(Ljava/lang/Class;)Ljava/util/EnumSet;
 
- 
writeOptionalWrites 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- Lsf;a(Ljava/util/Optional;Lsf$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
 
- 
readOptionalReads 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- Lsf;b(Lsf$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;
 
- 
readNullableReads 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- Lsf;c(Lsf$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;
 
- 
writeNullableWrites 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- Lsf;a(Ljava/lang/Object;Lsf$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
 
- 
writeEitherpublic <L,R> void writeEither(com.mojang.datafixers.util.Either<L, R> either, PacketByteBuf.PacketWriter<L> leftWriter, PacketByteBuf.PacketWriter<R> rightWriter) Writes anEitherto 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- Lsf;a(Lcom/mojang/datafixers/util/Either;Lsf$b;Lsf$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
 
- 
readEitherpublic <L,R> com.mojang.datafixers.util.Either<L,R> readEither(PacketByteBuf.PacketReader<L> leftReader, PacketByteBuf.PacketReader<R> rightReader) Reads anEitherfrom 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- Lsf;b(Lsf$a;Lsf$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;
 
- 
readByteArraypublic 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- Lsf;b()[B- intermediary - method_10795- Lnet/minecraft/class_2540;method_10795()[B- named - readByteArray- Lnet/minecraft/network/PacketByteBuf;readByteArray()[B
 
- 
writeByteArrayWrites 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- Lsf;a([B)Lsf;- 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;
 
- 
readByteArraypublic 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 bymaxSize.- 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- Lsf;b(I)[B- intermediary - method_10803- Lnet/minecraft/class_2540;method_10803(I)[B- named - readByteArray- Lnet/minecraft/network/PacketByteBuf;readByteArray(I)[B
 
- 
writeIntArrayWrites 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- Lsf;a([I)Lsf;- 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;
 
- 
readIntArraypublic 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- Lsf;c()[I- intermediary - method_10787- Lnet/minecraft/class_2540;method_10787()[I- named - readIntArray- Lnet/minecraft/network/PacketByteBuf;readIntArray()[I
 
- 
readIntArraypublic 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 bymaxSize.- 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- Lsf;c(I)[I- intermediary - method_10799- Lnet/minecraft/class_2540;method_10799(I)[I- named - readIntArray- Lnet/minecraft/network/PacketByteBuf;readIntArray(I)[I
 
- 
writeLongArrayWrites 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- Lsf;a([J)Lsf;- 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;
 
- 
readLongArraypublic 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- Lsf;d()[J- intermediary - method_33134- Lnet/minecraft/class_2540;method_33134()[J- named - readLongArray- Lnet/minecraft/network/PacketByteBuf;readLongArray()[J
 
- 
readLongArrayReads 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 toArrayis notnullandtoArray.lengthequals to the length var int read will thetoArraybe 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- Lsf;b([J)[J- intermediary - method_10801- Lnet/minecraft/class_2540;method_10801([J)[J- named - readLongArray- Lnet/minecraft/network/PacketByteBuf;readLongArray([J)[J
 
- 
readLongArraypublic 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 ofmaxSize.Only when toArrayis notnullandtoArray.lengthequals to the length var int read will thetoArraybe 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- Lsf;a([JI)[J- intermediary - method_10809- Lnet/minecraft/class_2540;method_10809([JI)[J- named - readLongArray- Lnet/minecraft/network/PacketByteBuf;readLongArray([JI)[J
 
- 
getWrittenBytespublic byte[] getWrittenBytes()Returns an array of bytes of contents in this buf between index0and thewriterIndex().- Mappings:
- Namespace - Name - Mixin selector - official - e- Lsf;e()[B- intermediary - method_36132- Lnet/minecraft/class_2540;method_36132()[B- named - getWrittenBytes- Lnet/minecraft/network/PacketByteBuf;getWrittenBytes()[B
 
- 
readBlockPosReads 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- Lsf;f()Lgu;- 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;
 
- 
writeBlockPosWrites 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- Lsf;a(Lgu;)Lsf;- 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;
 
- 
readChunkPosReads 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- Lsf;g()Lclt;- 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;
 
- 
writeChunkPosWrites 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- Lsf;a(Lclt;)Lsf;- 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;
 
- 
readChunkSectionPosReads 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- Lsf;h()Lhx;- 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;
 
- 
writeChunkSectionPosReads 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- Lsf;a(Lhx;)Lsf;- 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;
 
- 
readGlobalPosReads 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- Lsf;i()Lhd;- 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;
 
- 
writeGlobalPosWrites 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- Lsf;a(Lhd;)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
 
- 
readVector3f- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lsf;j()Lorg/joml/Vector3f;- intermediary - method_49069- Lnet/minecraft/class_2540;method_49069()Lorg/joml/Vector3f;- named - readVector3f- Lnet/minecraft/network/PacketByteBuf;readVector3f()Lorg/joml/Vector3f;
 
- 
writeVector3f- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lorg/joml/Vector3f;)V- intermediary - method_49068- Lnet/minecraft/class_2540;method_49068(Lorg/joml/Vector3f;)V- named - writeVector3f- Lnet/minecraft/network/PacketByteBuf;writeVector3f(Lorg/joml/Vector3f;)V
 
- 
readQuaternionf- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lsf;k()Lorg/joml/Quaternionf;- intermediary - method_49070- Lnet/minecraft/class_2540;method_49070()Lorg/joml/Quaternionf;- named - readQuaternionf- Lnet/minecraft/network/PacketByteBuf;readQuaternionf()Lorg/joml/Quaternionf;
 
- 
writeQuaternionf- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lorg/joml/Quaternionf;)V- intermediary - method_49067- Lnet/minecraft/class_2540;method_49067(Lorg/joml/Quaternionf;)V- named - writeQuaternionf- Lnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lorg/joml/Quaternionf;)V
 
- 
readTextReads 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 - l- Lsf;l()Lsw;- intermediary - method_10808- Lnet/minecraft/class_2540;method_10808()Lnet/minecraft/class_2561;- named - readText- Lnet/minecraft/network/PacketByteBuf;readText()Lnet/minecraft/text/Text;
 
- 
writeTextWrites 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- Lsf;a(Lsw;)Lsf;- 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;
 
- 
readEnumConstantReads 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 - b- Lsf;b(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;
 
- 
writeEnumConstantWrites 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- Lsf;a(Ljava/lang/Enum;)Lsf;- 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;
 
- 
readVarIntpublic int readVarInt()Reads a single var int from this buf.- Returns:
- the value read
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lsf;m()I- intermediary - method_10816- Lnet/minecraft/class_2540;method_10816()I- named - readVarInt- Lnet/minecraft/network/PacketByteBuf;readVarInt()I
 
- 
readVarLongpublic long readVarLong()Reads a single var long from this buf.- Returns:
- the value read
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - n- Lsf;n()J- intermediary - method_10792- Lnet/minecraft/class_2540;method_10792()J- named - readVarLong- Lnet/minecraft/network/PacketByteBuf;readVarLong()J
 
- 
writeUuidWrites 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- Lsf;a(Ljava/util/UUID;)Lsf;- 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;
 
- 
readUuidReads 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 - o- Lsf;o()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;
 
- 
writeVarIntWrites 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- Lsf;d(I)Lsf;- 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;
 
- 
writeVarLongWrites 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- Lsf;b(J)Lsf;- 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;
 
- 
writeNbtWrites an NBT compound to this buf. The binary representation of NBT is handled byNbtIo. Ifcompoundisnull, 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- Lsf;a(Lqr;)Lsf;- 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;
 
- 
readNbtReads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. 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 - p- Lsf;p()Lqr;- intermediary - method_10798- Lnet/minecraft/class_2540;method_10798()Lnet/minecraft/class_2487;- named - readNbt- Lnet/minecraft/network/PacketByteBuf;readNbt()Lnet/minecraft/nbt/NbtCompound;
 
- 
readUnlimitedNbtReads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. 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 - q- Lsf;q()Lqr;- intermediary - method_30617- Lnet/minecraft/class_2540;method_30617()Lnet/minecraft/class_2487;- named - readUnlimitedNbt- Lnet/minecraft/network/PacketByteBuf;readUnlimitedNbt()Lnet/minecraft/nbt/NbtCompound;
 
- 
readNbtReads an NBT compound from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. The compound can have a maximum size controlled by thesizeTracker.- 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- Lsf;a(Lra;)Lqr;- 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;
 
- 
writeItemStackWrites 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- Lsf;a(Lcfz;)Lsf;- 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;
 
- 
readItemStackReads 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 - r- Lsf;r()Lcfz;- intermediary - method_10819- Lnet/minecraft/class_2540;method_10819()Lnet/minecraft/class_1799;- named - readItemStack- Lnet/minecraft/network/PacketByteBuf;readItemStack()Lnet/minecraft/item/ItemStack;
 
- 
readStringReads 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 - s- Lsf;s()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;
 
- 
readStringReads 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 ofmaxLength.- 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- Lsf;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;
 
- 
writeStringWrites 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- Lsf;a(Ljava/lang/String;)Lsf;- 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;
 
- 
writeStringWrites 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 ofmaxLength.- 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- Lsf;a(Ljava/lang/String;I)Lsf;- 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;
 
- 
toEncodedStringLengthprivate static int toEncodedStringLength(int decodedLength) - Mappings:
- Namespace - Name - Mixin selector - official - g- Lsf;g(I)I- intermediary - method_44302- Lnet/minecraft/class_2540;method_44302(I)I- named - toEncodedStringLength- Lnet/minecraft/network/PacketByteBuf;toEncodedStringLength(I)I
 
- 
readIdentifierReads 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 - t- Lsf;t()Lacq;- intermediary - method_10810- Lnet/minecraft/class_2540;method_10810()Lnet/minecraft/class_2960;- named - readIdentifier- Lnet/minecraft/network/PacketByteBuf;readIdentifier()Lnet/minecraft/util/Identifier;
 
- 
writeIdentifierWrites an identifier to this buf. An identifier is represented by its string form. The written identifier's byte array can have a max length of 32767.- Parameters:
- id- the identifier to write
- Returns:
- this buf, for chaining
- Throws:
- EncoderException- if the- id's byte array is longer than 32767
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lacq;)Lsf;- 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;
 
- 
readRegistryKeyReads 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- Lsf;a(Lacp;)Lacp;- 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/registry/RegistryKey;)Lnet/minecraft/registry/RegistryKey;
 
- 
writeRegistryKeyWrites 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- Lsf;b(Lacp;)V- intermediary - method_44116- Lnet/minecraft/class_2540;method_44116(Lnet/minecraft/class_5321;)V- named - writeRegistryKey- Lnet/minecraft/network/PacketByteBuf;writeRegistryKey(Lnet/minecraft/registry/RegistryKey;)V
 
- 
readDateReads 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 - u- Lsf;u()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;
 
- 
writeDateWrites 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- Lsf;a(Ljava/util/Date;)Lsf;- 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;
 
- 
readInstantReads 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 - v- Lsf;v()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;
 
- 
writeInstantWrites an instant to this buf. An instant is represented by the milliseconds since the epoch.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;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
 
- 
readPublicKeyReads 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 - w- Lsf;w()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;
 
- 
writePublicKeyWrites 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- Lsf;a(Ljava/security/PublicKey;)Lsf;- 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;
 
- 
readBlockHitResultReads 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 - x- Lsf;x()Leee;- 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;
 
- 
writeBlockHitResultWrites 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- Lsf;a(Leee;)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
 
- 
readBitSetReads 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 - y- Lsf;y()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;
 
- 
writeBitSetWrites 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- Lsf;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
 
- 
readBitSetReads a bit set from this buf. A bit set is represented using its byte array representation.- Parameters:
- size- the maximum size of the bit set
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lsf;f(I)Ljava/util/BitSet;- intermediary - method_46254- Lnet/minecraft/class_2540;method_46254(I)Ljava/util/BitSet;- named - readBitSet- Lnet/minecraft/network/PacketByteBuf;readBitSet(I)Ljava/util/BitSet;
 
- 
writeBitSetWrites a bit set to this buf. A bit set is represented using its byte array representation.- Parameters:
- size- the maximum size of the bit set
- Throws:
- EncoderException- if the bit set's length is above- size
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Ljava/util/BitSet;I)V- intermediary - method_46252- Lnet/minecraft/class_2540;method_46252(Ljava/util/BitSet;I)V- named - writeBitSet- Lnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;I)V
 
- 
readGameProfilepublic 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 - z- Lsf;z()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;
 
- 
writeGameProfilepublic 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- Lsf;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
 
- 
readPropertyMappublic com.mojang.authlib.properties.PropertyMap readPropertyMap()Reads an authlib property map from this buf. A property map is represented as a collection of properties.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - A- Lsf;A()Lcom/mojang/authlib/properties/PropertyMap;- intermediary - method_46255- Lnet/minecraft/class_2540;method_46255()Lcom/mojang/authlib/properties/PropertyMap;- named - readPropertyMap- Lnet/minecraft/network/PacketByteBuf;readPropertyMap()Lcom/mojang/authlib/properties/PropertyMap;
 
- 
writePropertyMappublic void writePropertyMap(com.mojang.authlib.properties.PropertyMap propertyMap) Writes an authlib property map to this buf. A property map is represented as a collection of properties.- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lsf;a(Lcom/mojang/authlib/properties/PropertyMap;)V- intermediary - method_46249- Lnet/minecraft/class_2540;method_46249(Lcom/mojang/authlib/properties/PropertyMap;)V- named - writePropertyMap- Lnet/minecraft/network/PacketByteBuf;writePropertyMap(Lcom/mojang/authlib/properties/PropertyMap;)V
 
- 
readPropertypublic 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 - B- Lsf;B()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;
 
- 
writePropertypublic 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- Lsf;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
 
- 
capacitypublic int capacity()
- 
capacity- Specified by:
- capacityin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - capacity- Lsf;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;
 
- 
maxCapacitypublic int maxCapacity()- Specified by:
- maxCapacityin class- ByteBuf
 
- 
alloc
- 
order
- 
order- Specified by:
- orderin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - order- Lsf;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
- 
isDirectpublic boolean isDirect()
- 
isReadOnlypublic boolean isReadOnly()- Specified by:
- isReadOnlyin class- ByteBuf
 
- 
asReadOnly- Specified by:
- asReadOnlyin class- ByteBuf
 
- 
readerIndexpublic int readerIndex()- Specified by:
- readerIndexin class- ByteBuf
 
- 
readerIndex- Specified by:
- readerIndexin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readerIndex- Lsf;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;
 
- 
writerIndexpublic int writerIndex()- Specified by:
- writerIndexin class- ByteBuf
 
- 
writerIndex- Specified by:
- writerIndexin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writerIndex- Lsf;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- Specified by:
- setIndexin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setIndex- Lsf;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;
 
- 
readableBytespublic int readableBytes()- Specified by:
- readableBytesin class- ByteBuf
 
- 
writableBytespublic int writableBytes()- Specified by:
- writableBytesin class- ByteBuf
 
- 
maxWritableBytespublic int maxWritableBytes()- Specified by:
- maxWritableBytesin class- ByteBuf
 
- 
isReadablepublic boolean isReadable()- Specified by:
- isReadablein class- ByteBuf
 
- 
isReadablepublic boolean isReadable(int size) - Specified by:
- isReadablein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - isReadable- Lsf;isReadable(I)Z- intermediary - isReadable- Lnet/minecraft/class_2540;isReadable(I)Z- named - isReadable- Lnet/minecraft/network/PacketByteBuf;isReadable(I)Z
 
- 
isWritablepublic boolean isWritable()- Specified by:
- isWritablein class- ByteBuf
 
- 
isWritablepublic boolean isWritable(int size) - Specified by:
- isWritablein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - isWritable- Lsf;isWritable(I)Z- intermediary - isWritable- Lnet/minecraft/class_2540;isWritable(I)Z- named - isWritable- Lnet/minecraft/network/PacketByteBuf;isWritable(I)Z
 
- 
clear
- 
markReaderIndex- Specified by:
- markReaderIndexin class- ByteBuf
 
- 
resetReaderIndex- Specified by:
- resetReaderIndexin class- ByteBuf
 
- 
markWriterIndex- Specified by:
- markWriterIndexin class- ByteBuf
 
- 
resetWriterIndex- Specified by:
- resetWriterIndexin class- ByteBuf
 
- 
discardReadBytes- Specified by:
- discardReadBytesin class- ByteBuf
 
- 
discardSomeReadBytes- Specified by:
- discardSomeReadBytesin class- ByteBuf
 
- 
ensureWritable- Specified by:
- ensureWritablein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - ensureWritable- Lsf;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;
 
- 
ensureWritablepublic int ensureWritable(int minBytes, boolean force) - Specified by:
- ensureWritablein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - ensureWritable- Lsf;ensureWritable(IZ)I- intermediary - ensureWritable- Lnet/minecraft/class_2540;ensureWritable(IZ)I- named - ensureWritable- Lnet/minecraft/network/PacketByteBuf;ensureWritable(IZ)I
 
- 
getBooleanpublic boolean getBoolean(int index) - Specified by:
- getBooleanin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBoolean- Lsf;getBoolean(I)Z- intermediary - getBoolean- Lnet/minecraft/class_2540;getBoolean(I)Z- named - getBoolean- Lnet/minecraft/network/PacketByteBuf;getBoolean(I)Z
 
- 
getBytepublic byte getByte(int index) 
- 
getUnsignedBytepublic short getUnsignedByte(int index) - Specified by:
- getUnsignedBytein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedByte- Lsf;getUnsignedByte(I)S- intermediary - getUnsignedByte- Lnet/minecraft/class_2540;getUnsignedByte(I)S- named - getUnsignedByte- Lnet/minecraft/network/PacketByteBuf;getUnsignedByte(I)S
 
- 
getShortpublic short getShort(int index) 
- 
getShortLEpublic short getShortLE(int index) - Specified by:
- getShortLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getShortLE- Lsf;getShortLE(I)S- intermediary - getShortLE- Lnet/minecraft/class_2540;getShortLE(I)S- named - getShortLE- Lnet/minecraft/network/PacketByteBuf;getShortLE(I)S
 
- 
getUnsignedShortpublic int getUnsignedShort(int index) - Specified by:
- getUnsignedShortin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedShort- Lsf;getUnsignedShort(I)I- intermediary - getUnsignedShort- Lnet/minecraft/class_2540;getUnsignedShort(I)I- named - getUnsignedShort- Lnet/minecraft/network/PacketByteBuf;getUnsignedShort(I)I
 
- 
getUnsignedShortLEpublic int getUnsignedShortLE(int index) - Specified by:
- getUnsignedShortLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedShortLE- Lsf;getUnsignedShortLE(I)I- intermediary - getUnsignedShortLE- Lnet/minecraft/class_2540;getUnsignedShortLE(I)I- named - getUnsignedShortLE- Lnet/minecraft/network/PacketByteBuf;getUnsignedShortLE(I)I
 
- 
getMediumpublic int getMedium(int index) 
- 
getMediumLEpublic int getMediumLE(int index) - Specified by:
- getMediumLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getMediumLE- Lsf;getMediumLE(I)I- intermediary - getMediumLE- Lnet/minecraft/class_2540;getMediumLE(I)I- named - getMediumLE- Lnet/minecraft/network/PacketByteBuf;getMediumLE(I)I
 
- 
getUnsignedMediumpublic int getUnsignedMedium(int index) - Specified by:
- getUnsignedMediumin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedMedium- Lsf;getUnsignedMedium(I)I- intermediary - getUnsignedMedium- Lnet/minecraft/class_2540;getUnsignedMedium(I)I- named - getUnsignedMedium- Lnet/minecraft/network/PacketByteBuf;getUnsignedMedium(I)I
 
- 
getUnsignedMediumLEpublic int getUnsignedMediumLE(int index) - Specified by:
- getUnsignedMediumLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedMediumLE- Lsf;getUnsignedMediumLE(I)I- intermediary - getUnsignedMediumLE- Lnet/minecraft/class_2540;getUnsignedMediumLE(I)I- named - getUnsignedMediumLE- Lnet/minecraft/network/PacketByteBuf;getUnsignedMediumLE(I)I
 
- 
getIntpublic int getInt(int index) 
- 
getIntLEpublic int getIntLE(int index) 
- 
getUnsignedIntpublic long getUnsignedInt(int index) - Specified by:
- getUnsignedIntin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedInt- Lsf;getUnsignedInt(I)J- intermediary - getUnsignedInt- Lnet/minecraft/class_2540;getUnsignedInt(I)J- named - getUnsignedInt- Lnet/minecraft/network/PacketByteBuf;getUnsignedInt(I)J
 
- 
getUnsignedIntLEpublic long getUnsignedIntLE(int index) - Specified by:
- getUnsignedIntLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getUnsignedIntLE- Lsf;getUnsignedIntLE(I)J- intermediary - getUnsignedIntLE- Lnet/minecraft/class_2540;getUnsignedIntLE(I)J- named - getUnsignedIntLE- Lnet/minecraft/network/PacketByteBuf;getUnsignedIntLE(I)J
 
- 
getLongpublic long getLong(int index) 
- 
getLongLEpublic long getLongLE(int index) 
- 
getCharpublic char getChar(int index) 
- 
getFloatpublic float getFloat(int index) 
- 
getDoublepublic double getDouble(int index) 
- 
getBytes- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - getBytes- Lsf;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- Specified by:
- getCharSequencein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - getCharSequence- Lsf;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- Specified by:
- setBooleanin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBoolean- Lsf;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- Specified by:
- setBytein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setByte- Lsf;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- Specified by:
- setShortin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setShort- Lsf;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- Specified by:
- setShortLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setShortLE- Lsf;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- Specified by:
- setMediumin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setMedium- Lsf;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- Specified by:
- setMediumLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setMediumLE- Lsf;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- Specified by:
- setIntin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setInt- Lsf;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- Specified by:
- setIntLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setIntLE- Lsf;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- Specified by:
- setLongin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setLong- Lsf;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- Specified by:
- setLongLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setLongLE- Lsf;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- Specified by:
- setCharin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setChar- Lsf;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- Specified by:
- setFloatin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setFloat- Lsf;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- Specified by:
- setDoublein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setDouble- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - setBytes- Lsf;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- Specified by:
- setZeroin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setZero- Lsf;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- Specified by:
- setCharSequencein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - setCharSequence- Lsf;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
 
- 
readBooleanpublic boolean readBoolean()- Specified by:
- readBooleanin class- ByteBuf
 
- 
readBytepublic byte readByte()
- 
readUnsignedBytepublic short readUnsignedByte()- Specified by:
- readUnsignedBytein class- ByteBuf
 
- 
readShortpublic short readShort()
- 
readShortLEpublic short readShortLE()- Specified by:
- readShortLEin class- ByteBuf
 
- 
readUnsignedShortpublic int readUnsignedShort()- Specified by:
- readUnsignedShortin class- ByteBuf
 
- 
readUnsignedShortLEpublic int readUnsignedShortLE()- Specified by:
- readUnsignedShortLEin class- ByteBuf
 
- 
readMediumpublic int readMedium()- Specified by:
- readMediumin class- ByteBuf
 
- 
readMediumLEpublic int readMediumLE()- Specified by:
- readMediumLEin class- ByteBuf
 
- 
readUnsignedMediumpublic int readUnsignedMedium()- Specified by:
- readUnsignedMediumin class- ByteBuf
 
- 
readUnsignedMediumLEpublic int readUnsignedMediumLE()- Specified by:
- readUnsignedMediumLEin class- ByteBuf
 
- 
readIntpublic int readInt()
- 
readIntLEpublic int readIntLE()
- 
readUnsignedIntpublic long readUnsignedInt()- Specified by:
- readUnsignedIntin class- ByteBuf
 
- 
readUnsignedIntLEpublic long readUnsignedIntLE()- Specified by:
- readUnsignedIntLEin class- ByteBuf
 
- 
readLongpublic long readLong()
- 
readLongLEpublic long readLongLE()- Specified by:
- readLongLEin class- ByteBuf
 
- 
readCharpublic char readChar()
- 
readFloatpublic float readFloat()
- 
readDoublepublic double readDouble()- Specified by:
- readDoublein class- ByteBuf
 
- 
readBytes- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readSlicein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readSlice- Lsf;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- Specified by:
- readRetainedSlicein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readRetainedSlice- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- readCharSequencein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - readCharSequence- Lsf;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- Specified by:
- readBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - readBytes- Lsf;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- Specified by:
- skipBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - skipBytes- Lsf;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- Specified by:
- writeBooleanin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBoolean- Lsf;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- Specified by:
- writeBytein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeByte- Lsf;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- Specified by:
- writeShortin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeShort- Lsf;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- Specified by:
- writeShortLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeShortLE- Lsf;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- Specified by:
- writeMediumin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeMedium- Lsf;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- Specified by:
- writeMediumLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeMediumLE- Lsf;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- Specified by:
- writeIntin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeInt- Lsf;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- Specified by:
- writeIntLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeIntLE- Lsf;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- Specified by:
- writeLongin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeLong- Lsf;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- Specified by:
- writeLongLEin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeLongLE- Lsf;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- Specified by:
- writeCharin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeChar- Lsf;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- Specified by:
- writeFloatin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeFloat- Lsf;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- Specified by:
- writeDoublein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeDouble- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeBytesin class- ByteBuf
- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - writeBytes- Lsf;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- Specified by:
- writeZeroin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeZero- Lsf;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- Specified by:
- writeCharSequencein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - writeCharSequence- Lsf;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
 
- 
indexOfpublic int indexOf(int from, int to, byte value) 
- 
bytesBeforepublic int bytesBefore(byte value) - Specified by:
- bytesBeforein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - bytesBefore- Lsf;bytesBefore(B)I- intermediary - bytesBefore- Lnet/minecraft/class_2540;bytesBefore(B)I- named - bytesBefore- Lnet/minecraft/network/PacketByteBuf;bytesBefore(B)I
 
- 
bytesBeforepublic int bytesBefore(int length, byte value) - Specified by:
- bytesBeforein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - bytesBefore- Lsf;bytesBefore(IB)I- intermediary - bytesBefore- Lnet/minecraft/class_2540;bytesBefore(IB)I- named - bytesBefore- Lnet/minecraft/network/PacketByteBuf;bytesBefore(IB)I
 
- 
bytesBeforepublic int bytesBefore(int index, int length, byte value) - Specified by:
- bytesBeforein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - bytesBefore- Lsf;bytesBefore(IIB)I- intermediary - bytesBefore- Lnet/minecraft/class_2540;bytesBefore(IIB)I- named - bytesBefore- Lnet/minecraft/network/PacketByteBuf;bytesBefore(IIB)I
 
- 
forEachByte- Specified by:
- forEachBytein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - forEachByte- Lsf;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- Specified by:
- forEachBytein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - forEachByte- Lsf;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- Specified by:
- forEachByteDescin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - forEachByteDesc- Lsf;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- Specified by:
- forEachByteDescin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - forEachByteDesc- Lsf;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
- 
copy
- 
slice
- 
retainedSlice- Specified by:
- retainedSlicein class- ByteBuf
 
- 
slice
- 
retainedSlice- Specified by:
- retainedSlicein class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - retainedSlice- Lsf;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
- 
retainedDuplicate- Specified by:
- retainedDuplicatein class- ByteBuf
 
- 
nioBufferCountpublic int nioBufferCount()- Specified by:
- nioBufferCountin class- ByteBuf
 
- 
nioBuffer
- 
nioBuffer- Specified by:
- nioBufferin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - nioBuffer- Lsf;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- Specified by:
- internalNioBufferin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - internalNioBuffer- Lsf;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- Specified by:
- nioBuffersin class- ByteBuf
 
- 
nioBuffers- Specified by:
- nioBuffersin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - nioBuffers- Lsf;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;
 
- 
hasArraypublic boolean hasArray()
- 
arraypublic byte[] array()
- 
arrayOffsetpublic int arrayOffset()- Specified by:
- arrayOffsetin class- ByteBuf
 
- 
hasMemoryAddresspublic boolean hasMemoryAddress()- Specified by:
- hasMemoryAddressin class- ByteBuf
 
- 
memoryAddresspublic long memoryAddress()- Specified by:
- memoryAddressin class- ByteBuf
 
- 
toString- Specified by:
- toStringin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - toString- Lsf;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- Specified by:
- toStringin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - toString- Lsf;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;
 
- 
hashCodepublic int hashCode()
- 
equals
- 
compareTo- Specified by:
- compareToin interface- Comparable<ByteBuf>
- Specified by:
- compareToin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - compareTo- Lsf;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
- 
retain- Specified by:
- retainin interface- ReferenceCounted
- Specified by:
- retainin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - retain- Lsf;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- Specified by:
- retainin interface- ReferenceCounted
- Specified by:
- retainin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - retain- Lsf;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- Specified by:
- touchin interface- ReferenceCounted
- Specified by:
- touchin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - touch- Lsf;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- Specified by:
- touchin interface- ReferenceCounted
- Specified by:
- touchin class- ByteBuf
- Mappings:
- Namespace - Name - Mixin selector - official - touch- Lsf;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;
 
- 
refCntpublic int refCnt()
- 
releasepublic boolean release()
- 
releasepublic boolean release(int decrement) - Mappings:
- Namespace - Name - Mixin selector - official - release- Lsf;release(I)Z- intermediary - release- Lnet/minecraft/class_2540;release(I)Z- named - release- Lnet/minecraft/network/PacketByteBuf;release(I)Z
 
 
-