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 intermediary net/minecraft/class_2540official sfnamed net/minecraft/network/PacketByteBuf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA functional interface to read a value fromPacketByteBuf.static interfaceA functional interface to write a value toPacketByteBuf. -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionPacketByteBuf(ByteBuf parent) Creates a packet byte buf that delegates its operations to theparentbuf. -
Method Summary
Modifier 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.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, isContiguous, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Field Details
-
MAX_VAR_INT_LENGTH
private 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 intermediary field_33285Lnet/minecraft/class_2540;field_33285:Iofficial dLsf;d:Inamed MAX_VAR_INT_LENGTHLnet/minecraft/network/PacketByteBuf;MAX_VAR_INT_LENGTH:I
-
MAX_VAR_LONG_LENGTH
private 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 intermediary field_33286Lnet/minecraft/class_2540;field_33286:Iofficial eLsf;e:Inamed MAX_VAR_LONG_LENGTHLnet/minecraft/network/PacketByteBuf;MAX_VAR_LONG_LENGTH:I
-
MAX_READ_NBT_SIZE
public 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 intermediary field_33287Lnet/minecraft/class_2540;field_33287:Iofficial aLsf;a:Inamed MAX_READ_NBT_SIZELnet/minecraft/network/PacketByteBuf;MAX_READ_NBT_SIZE:I
-
DEFAULT_MAX_STRING_LENGTH
public 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 intermediary field_33283Lnet/minecraft/class_2540;field_33283:Sofficial bLsf;b:Snamed DEFAULT_MAX_STRING_LENGTHLnet/minecraft/network/PacketByteBuf;DEFAULT_MAX_STRING_LENGTH:S
-
MAX_TEXT_LENGTH
public 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 intermediary field_33284Lnet/minecraft/class_2540;field_33284:Iofficial cLsf;c:Inamed MAX_TEXT_LENGTHLnet/minecraft/network/PacketByteBuf;MAX_TEXT_LENGTH:I
-
field_39381
private static final int field_39381- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_39381Lnet/minecraft/class_2540;field_39381:Iofficial gLsf;g:Inamed field_39381Lnet/minecraft/network/PacketByteBuf;field_39381:I
-
field_39382
private static final int field_39382- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_39382Lnet/minecraft/class_2540;field_39382:Iofficial hLsf;h:Inamed field_39382Lnet/minecraft/network/PacketByteBuf;field_39382:I
-
field_39383
private static final int field_39383- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_39383Lnet/minecraft/class_2540;field_39383:Iofficial iLsf;i:Inamed field_39383Lnet/minecraft/network/PacketByteBuf;field_39383:I
-
GSON
- Mappings:
Namespace Name Mixin selector intermediary field_42966Lnet/minecraft/class_2540;field_42966:Lcom/google/gson/Gson;official jLsf;j:Lcom/google/gson/Gson;named GSONLnet/minecraft/network/PacketByteBuf;GSON:Lcom/google/gson/Gson;
-
parent
- Mappings:
Namespace Name Mixin selector intermediary field_11695Lnet/minecraft/class_2540;field_11695:Lio/netty/buffer/ByteBuf;official fLsf;f:Lio/netty/buffer/ByteBuf;named parentLnet/minecraft/network/PacketByteBuf;parent:Lio/netty/buffer/ByteBuf;
-
-
Constructor Details
-
PacketByteBuf
Creates a packet byte buf that delegates its operations to theparentbuf.- Parameters:
parent- the parent, or delegate, buf- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2540;<init>(Lio/netty/buffer/ByteBuf;)Vofficial <init>Lsf;<init>(Lio/netty/buffer/ByteBuf;)Vnamed <init>Lnet/minecraft/network/PacketByteBuf;<init>(Lio/netty/buffer/ByteBuf;)V
-
-
Method Details
-
getVarIntLength
public 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 intermediary method_10815Lnet/minecraft/class_2540;method_10815(I)Iofficial aLsf;a(I)Inamed getVarIntLengthLnet/minecraft/network/PacketByteBuf;getVarIntLength(I)I
-
getVarLongLength
public 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 intermediary method_36129Lnet/minecraft/class_2540;method_36129(J)Iofficial aLsf;a(J)Inamed getVarLongLengthLnet/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 thecodecfails to decode the compound NBT- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_29171Lnet/minecraft/class_2540;method_29171(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;official aLsf;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;named decodeLnet/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 thecodecfails to encode the compound NBT- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_29172Lnet/minecraft/class_2540;method_29172(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vofficial aLsf;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vnamed encodeLnet/minecraft/network/PacketByteBuf;encode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
-
decodeAsJson
public <T> T decodeAsJson(com.mojang.serialization.Codec<T> codec) Reads an object from this buf as a JSON element with the given codec.- Type Parameters:
T- the decoded object's type- Returns:
- the read object
- Throws:
EncoderException- if thecodecfails to decode the JSON element- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49394Lnet/minecraft/class_2540;method_49394(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;official aLsf;a(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;named decodeAsJsonLnet/minecraft/network/PacketByteBuf;decodeAsJson(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
-
encodeAsJson
public <T> void encodeAsJson(com.mojang.serialization.Codec<T> codec, T value) Writes an object to this buf as a JSON element with the given codec.- Type Parameters:
T- the encoded object's type- Throws:
EncoderException- if thecodecfails to encode the JSON element- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49395Lnet/minecraft/class_2540;method_49395(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vofficial aLsf;a(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vnamed encodeAsJsonLnet/minecraft/network/PacketByteBuf;encodeAsJson(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
-
writeRegistryValue
Writes 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 valuevalue- a value to write, must be inregistry- Throws:
IllegalArgumentException- ifvalueis not inregistry- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_42065Lnet/minecraft/class_2540;method_42065(Lnet/minecraft/class_2359;Ljava/lang/Object;)Vofficial aLsf;a(Lhj;Ljava/lang/Object;)Vnamed writeRegistryValueLnet/minecraft/network/PacketByteBuf;writeRegistryValue(Lnet/minecraft/util/collection/IndexedIterable;Ljava/lang/Object;)V
-
writeRegistryEntry
public <T> void writeRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, RegistryEntry<T> entry, PacketByteBuf.PacketWriter<T> writer) - Mappings:
Namespace Name Mixin selector intermediary method_47989Lnet/minecraft/class_2540;method_47989(Lnet/minecraft/class_2359;Lnet/minecraft/class_6880;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Lhj;Lhe;Lsf$b;)Vnamed writeRegistryEntryLnet/minecraft/network/PacketByteBuf;writeRegistryEntry(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
readRegistryValue
Reads 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 intermediary method_42064Lnet/minecraft/class_2540;method_42064(Lnet/minecraft/class_2359;)Ljava/lang/Object;official aLsf;a(Lhj;)Ljava/lang/Object;named readRegistryValueLnet/minecraft/network/PacketByteBuf;readRegistryValue(Lnet/minecraft/util/collection/IndexedIterable;)Ljava/lang/Object;
-
readRegistryEntry
public <T> RegistryEntry<T> readRegistryEntry(IndexedIterable<RegistryEntry<T>> registryEntries, PacketByteBuf.PacketReader<T> reader) - Mappings:
Namespace Name Mixin selector intermediary method_47990Lnet/minecraft/class_2540;method_47990(Lnet/minecraft/class_2359;Lnet/minecraft/class_2540$class_7461;)Lnet/minecraft/class_6880;official aLsf;a(Lhj;Lsf$a;)Lhe;named readRegistryEntryLnet/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 intermediary method_37453Lnet/minecraft/class_2540;method_37453(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;official aLsf;a(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;named getMaxValidatorLnet/minecraft/network/PacketByteBuf;getMaxValidator(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
-
readCollection
public <T,C extends Collection<T>> C readCollection(IntFunction<C> collectionFactory, PacketByteBuf.PacketReader<T> reader) Reads a collection from this buf. The collection is stored as a leading var int size followed by the entries sequentially.- Type Parameters:
T- the collection's entry typeC- 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 intermediary method_34068Lnet/minecraft/class_2540;method_34068(Ljava/util/function/IntFunction;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Collection;official aLsf;a(Ljava/util/function/IntFunction;Lsf$a;)Ljava/util/Collection;named readCollectionLnet/minecraft/network/PacketByteBuf;readCollection(Ljava/util/function/IntFunction;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Collection;
-
writeCollection
Writes a collection to this buf. The collection is stored as a leading var int size followed by the entries sequentially.- Type Parameters:
T- the list's entry type- Parameters:
collection- the collection to write- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_34062Lnet/minecraft/class_2540;method_34062(Ljava/util/Collection;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Ljava/util/Collection;Lsf$b;)Vnamed writeCollectionLnet/minecraft/network/PacketByteBuf;writeCollection(Ljava/util/Collection;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
readList
Reads a collection from this buf as an array list.- Type Parameters:
T- the list's entry type- Returns:
- the read list
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_34066Lnet/minecraft/class_2540;method_34066(Lnet/minecraft/class_2540$class_7461;)Ljava/util/List;official aLsf;a(Lsf$a;)Ljava/util/List;named readListLnet/minecraft/network/PacketByteBuf;readList(Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/List;
-
readIntList
Reads a list of primitive ints from this buf. The ints are stored as var ints, with an extra var int in the beginning indicating the size.- Returns:
- the read list
- See Also:
- API Note:
- To limit the length of the list or array read, use
readIntArray(int). - Implementation Note:
- A list of ints has the same format as an int array.
- Mappings:
Namespace Name Mixin selector intermediary method_34059Lnet/minecraft/class_2540;method_34059()Lit/unimi/dsi/fastutil/ints/IntList;official aLsf;a()Lit/unimi/dsi/fastutil/ints/IntList;named readIntListLnet/minecraft/network/PacketByteBuf;readIntList()Lit/unimi/dsi/fastutil/ints/IntList;
-
writeIntList
Writes a list of primitive ints from this buf. The ints are stored as var ints, with an extra var int in the beginning indicating the size.- Parameters:
list- the list to write- See Also:
- Implementation Note:
- A list of ints has the same format as an int array.
- Mappings:
Namespace Name Mixin selector intermediary method_34060Lnet/minecraft/class_2540;method_34060(Lit/unimi/dsi/fastutil/ints/IntList;)Vofficial aLsf;a(Lit/unimi/dsi/fastutil/ints/IntList;)Vnamed writeIntListLnet/minecraft/network/PacketByteBuf;writeIntList(Lit/unimi/dsi/fastutil/ints/IntList;)V
-
readMap
public <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 typeV- the value typeM- 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 intermediary method_34069Lnet/minecraft/class_2540;method_34069(Ljava/util/function/IntFunction;Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Map;official aLsf;a(Ljava/util/function/IntFunction;Lsf$a;Lsf$a;)Ljava/util/Map;named readMapLnet/minecraft/network/PacketByteBuf;readMap(Ljava/util/function/IntFunction;Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Map;
-
readMap
public <K,V> Map<K,V> readMap(PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<V> valueReader) Reads a map from this buf as a hash map.- Type Parameters:
K- the key typeV- the value type- Returns:
- the read map
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_34067Lnet/minecraft/class_2540;method_34067(Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Ljava/util/Map;official aLsf;a(Lsf$a;Lsf$a;)Ljava/util/Map;named readMapLnet/minecraft/network/PacketByteBuf;readMap(Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Map;
-
writeMap
public <K,V> void writeMap(Map<K, V> map, PacketByteBuf.PacketWriter<K> keyWriter, PacketByteBuf.PacketWriter<V> valueWriter) Writes a map to this buf. The map is stored as a leading var int size followed by each key and value pair.- Type Parameters:
K- the key typeV- the value type- Parameters:
map- the map to write- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_34063Lnet/minecraft/class_2540;method_34063(Ljava/util/Map;Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Ljava/util/Map;Lsf$b;Lsf$b;)Vnamed writeMapLnet/minecraft/network/PacketByteBuf;writeMap(Ljava/util/Map;Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
forEachInCollection
Iterates 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 intermediary method_34065Lnet/minecraft/class_2540;method_34065(Ljava/util/function/Consumer;)Vofficial aLsf;a(Ljava/util/function/Consumer;)Vnamed forEachInCollectionLnet/minecraft/network/PacketByteBuf;forEachInCollection(Ljava/util/function/Consumer;)V
-
writeEnumSet
Writes an enum set to this buf. An enum set is represented by a bit set that indicates whether each element is in the set.- Parameters:
type- the type of the enum- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_46253Lnet/minecraft/class_2540;method_46253(Ljava/util/EnumSet;Ljava/lang/Class;)Vofficial aLsf;a(Ljava/util/EnumSet;Ljava/lang/Class;)Vnamed writeEnumSetLnet/minecraft/network/PacketByteBuf;writeEnumSet(Ljava/util/EnumSet;Ljava/lang/Class;)V
-
readEnumSet
Reads an enum set from this buf. An enum set is represented by a bit set that indicates whether each element is in the set.- Parameters:
type- the type of the enum- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_46251Lnet/minecraft/class_2540;method_46251(Ljava/lang/Class;)Ljava/util/EnumSet;official aLsf;a(Ljava/lang/Class;)Ljava/util/EnumSet;named readEnumSetLnet/minecraft/network/PacketByteBuf;readEnumSet(Ljava/lang/Class;)Ljava/util/EnumSet;
-
writeOptional
Writes an optional value to this buf. An optional value is represented by a boolean indicating if the value is present, followed by the value only if the value is present.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_37435Lnet/minecraft/class_2540;method_37435(Ljava/util/Optional;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Ljava/util/Optional;Lsf$b;)Vnamed writeOptionalLnet/minecraft/network/PacketByteBuf;writeOptional(Ljava/util/Optional;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
readOptional
Reads an optional value from this buf. An optional value is represented by a boolean indicating if the value is present, followed by the value only if the value is present.- Returns:
- the read optional value
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_37436Lnet/minecraft/class_2540;method_37436(Lnet/minecraft/class_2540$class_7461;)Ljava/util/Optional;official bLsf;b(Lsf$a;)Ljava/util/Optional;named readOptionalLnet/minecraft/network/PacketByteBuf;readOptional(Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/util/Optional;
-
readNullable
Reads a nullable value from this buf. A nullable value is represented by a boolean indicating if the value is not null, followed by the value only if the value is not null.- Returns:
- the read nullable value
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43827Lnet/minecraft/class_2540;method_43827(Lnet/minecraft/class_2540$class_7461;)Ljava/lang/Object;official cLsf;c(Lsf$a;)Ljava/lang/Object;named readNullableLnet/minecraft/network/PacketByteBuf;readNullable(Lnet/minecraft/network/PacketByteBuf$PacketReader;)Ljava/lang/Object;
-
writeNullable
Writes a nullable value to this buf. A nullable value is represented by a boolean indicating if the value is not null, followed by the value only if the value is not null.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43826Lnet/minecraft/class_2540;method_43826(Ljava/lang/Object;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Ljava/lang/Object;Lsf$b;)Vnamed writeNullableLnet/minecraft/network/PacketByteBuf;writeNullable(Ljava/lang/Object;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
writeEither
public <L,R> void writeEither(com.mojang.datafixers.util.Either<L, R> either, PacketByteBuf.PacketWriter<L> leftWriter, PacketByteBuf.PacketWriter<R> rightWriter) Writes 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 intermediary method_43619Lnet/minecraft/class_2540;method_43619(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7462;)Vofficial aLsf;a(Lcom/mojang/datafixers/util/Either;Lsf$b;Lsf$b;)Vnamed writeEitherLnet/minecraft/network/PacketByteBuf;writeEither(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketWriter;)V
-
readEither
public <L,R> com.mojang.datafixers.util.Either<L,R> readEither(PacketByteBuf.PacketReader<L> leftReader, PacketByteBuf.PacketReader<R> rightReader) Reads 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 intermediary method_43622Lnet/minecraft/class_2540;method_43622(Lnet/minecraft/class_2540$class_7461;Lnet/minecraft/class_2540$class_7461;)Lcom/mojang/datafixers/util/Either;official bLsf;b(Lsf$a;Lsf$a;)Lcom/mojang/datafixers/util/Either;named readEitherLnet/minecraft/network/PacketByteBuf;readEither(Lnet/minecraft/network/PacketByteBuf$PacketReader;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Lcom/mojang/datafixers/util/Either;
-
readByteArray
public byte[] readByteArray()Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10795Lnet/minecraft/class_2540;method_10795()[Bofficial bLsf;b()[Bnamed readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray()[B
-
writeByteArray
Writes an array of primitive bytes to this buf. The array first has a var int indicating its length, followed by the actual bytes.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10813Lnet/minecraft/class_2540;method_10813([B)Lnet/minecraft/class_2540;official aLsf;a([B)Lsf;named writeByteArrayLnet/minecraft/network/PacketByteBuf;writeByteArray([B)Lnet/minecraft/network/PacketByteBuf;
-
readByteArray
public byte[] readByteArray(int maxSize) Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array has a length limit given bymaxSize.- Parameters:
maxSize- the max length of the read array- Returns:
- the read byte array
- Throws:
DecoderException- if the read array has a length overmaxSize- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10803Lnet/minecraft/class_2540;method_10803(I)[Bofficial bLsf;b(I)[Bnamed readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray(I)[B
-
writeIntArray
Writes an array of primitive ints to this buf. The array first has a var int indicating its length, followed by the var int entries.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
- Implementation Note:
- An int array has the same format as a list of ints.
- Mappings:
Namespace Name Mixin selector intermediary method_10806Lnet/minecraft/class_2540;method_10806([I)Lnet/minecraft/class_2540;official aLsf;a([I)Lsf;named writeIntArrayLnet/minecraft/network/PacketByteBuf;writeIntArray([I)Lnet/minecraft/network/PacketByteBuf;
-
readIntArray
public int[] readIntArray()Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
- Implementation Note:
- An int array has the same format as a list of ints.
- Mappings:
Namespace Name Mixin selector intermediary method_10787Lnet/minecraft/class_2540;method_10787()[Iofficial cLsf;c()[Inamed readIntArrayLnet/minecraft/network/PacketByteBuf;readIntArray()[I
-
readIntArray
public int[] readIntArray(int maxSize) Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array has a length limit given bymaxSize.- Parameters:
maxSize- the max length of the read array- Returns:
- the read byte array
- Throws:
DecoderException- if the read array has a length overmaxSize- See Also:
- Implementation Note:
- An int array has the same format as a list of ints.
- Mappings:
Namespace Name Mixin selector intermediary method_10799Lnet/minecraft/class_2540;method_10799(I)[Iofficial cLsf;c(I)[Inamed readIntArrayLnet/minecraft/network/PacketByteBuf;readIntArray(I)[I
-
writeLongArray
Writes an array of primitive longs to this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values.- Parameters:
array- the array to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10789Lnet/minecraft/class_2540;method_10789([J)Lnet/minecraft/class_2540;official aLsf;a([J)Lsf;named writeLongArrayLnet/minecraft/network/PacketByteBuf;writeLongArray([J)Lnet/minecraft/network/PacketByteBuf;
-
readLongArray
public long[] readLongArray()Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array does not have a length limit.- Returns:
- the read long array
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_33134Lnet/minecraft/class_2540;method_33134()[Jofficial dLsf;d()[Jnamed readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray()[J
-
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.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 intermediary method_10801Lnet/minecraft/class_2540;method_10801([J)[Jofficial bLsf;b([J)[Jnamed readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray([J)[J
-
readLongArray
public long[] readLongArray(@Nullable @org.jetbrains.annotations.Nullable long[] toArray, int maxSize) Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array has a length limit 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 reusemaxSize- the max length of the read array- Returns:
- the read long array
- Throws:
DecoderException- if the read array has a length overmaxSize- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10809Lnet/minecraft/class_2540;method_10809([JI)[Jofficial aLsf;a([JI)[Jnamed readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray([JI)[J
-
getWrittenBytes
public byte[] getWrittenBytes()Returns an array of bytes of contents in this buf between index0and thewriterIndex().- Mappings:
Namespace Name Mixin selector intermediary method_36132Lnet/minecraft/class_2540;method_36132()[Bofficial eLsf;e()[Bnamed getWrittenBytesLnet/minecraft/network/PacketByteBuf;getWrittenBytes()[B
-
readBlockPos
Reads a block position from this buf. A block position is represented by a regular long.- Returns:
- the read block pos
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10811Lnet/minecraft/class_2540;method_10811()Lnet/minecraft/class_2338;official fLsf;f()Lgu;named readBlockPosLnet/minecraft/network/PacketByteBuf;readBlockPos()Lnet/minecraft/util/math/BlockPos;
-
writeBlockPos
Writes a block position to this buf. A block position is represented by a regular long.- Parameters:
pos- the pos to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10807Lnet/minecraft/class_2540;method_10807(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2540;official aLsf;a(Lgu;)Lsf;named writeBlockPosLnet/minecraft/network/PacketByteBuf;writeBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/network/PacketByteBuf;
-
readChunkPos
Reads a chunk position from this buf. A chunk position is represented by a regular long.- Returns:
- the read chunk position
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_36133Lnet/minecraft/class_2540;method_36133()Lnet/minecraft/class_1923;official gLsf;g()Lclr;named readChunkPosLnet/minecraft/network/PacketByteBuf;readChunkPos()Lnet/minecraft/util/math/ChunkPos;
-
writeChunkPos
Writes a chunk position to this buf. A chunk position is represented by a regular long.- Parameters:
pos- the chunk position to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_36130Lnet/minecraft/class_2540;method_36130(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2540;official aLsf;a(Lclr;)Lsf;named writeChunkPosLnet/minecraft/network/PacketByteBuf;writeChunkPos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/PacketByteBuf;
-
readChunkSectionPos
Reads a chunk section position from this buf. A chunk section position is represented by a regular long.- Returns:
- the read chunk section pos
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_19456Lnet/minecraft/class_2540;method_19456()Lnet/minecraft/class_4076;official hLsf;h()Lhx;named readChunkSectionPosLnet/minecraft/network/PacketByteBuf;readChunkSectionPos()Lnet/minecraft/util/math/ChunkSectionPos;
-
writeChunkSectionPos
Reads a chunk section position from this buf. A chunk section position is represented by a regular long.- Parameters:
pos- the section position to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_36131Lnet/minecraft/class_2540;method_36131(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2540;official aLsf;a(Lhx;)Lsf;named writeChunkSectionPosLnet/minecraft/network/PacketByteBuf;writeChunkSectionPos(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/network/PacketByteBuf;
-
readGlobalPos
Reads a global position from this buf. A global position is represented by the registry key of the dimension followed by the block position.- Returns:
- the read global pos
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44117Lnet/minecraft/class_2540;method_44117()Lnet/minecraft/class_4208;official iLsf;i()Lhd;named readGlobalPosLnet/minecraft/network/PacketByteBuf;readGlobalPos()Lnet/minecraft/util/math/GlobalPos;
-
writeGlobalPos
Writes a global position to this buf. A global position is represented by the registry key of the dimension followed by the block position.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44113Lnet/minecraft/class_2540;method_44113(Lnet/minecraft/class_4208;)Vofficial aLsf;a(Lhd;)Vnamed writeGlobalPosLnet/minecraft/network/PacketByteBuf;writeGlobalPos(Lnet/minecraft/util/math/GlobalPos;)V
-
readVector3f
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49069Lnet/minecraft/class_2540;method_49069()Lorg/joml/Vector3f;official jLsf;j()Lorg/joml/Vector3f;named readVector3fLnet/minecraft/network/PacketByteBuf;readVector3f()Lorg/joml/Vector3f;
-
writeVector3f
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49068Lnet/minecraft/class_2540;method_49068(Lorg/joml/Vector3f;)Vofficial aLsf;a(Lorg/joml/Vector3f;)Vnamed writeVector3fLnet/minecraft/network/PacketByteBuf;writeVector3f(Lorg/joml/Vector3f;)V
-
readQuaternionf
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49070Lnet/minecraft/class_2540;method_49070()Lorg/joml/Quaternionf;official kLsf;k()Lorg/joml/Quaternionf;named readQuaternionfLnet/minecraft/network/PacketByteBuf;readQuaternionf()Lorg/joml/Quaternionf;
-
writeQuaternionf
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_49067Lnet/minecraft/class_2540;method_49067(Lorg/joml/Quaternionf;)Vofficial aLsf;a(Lorg/joml/Quaternionf;)Vnamed writeQuaternionfLnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lorg/joml/Quaternionf;)V
-
readText
Reads a text from this buf. A text is represented by a JSON string with max length 262144.- Returns:
- the read text
- Throws:
DecoderException- if the JSON string read exceeds 262144 in length- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10808Lnet/minecraft/class_2540;method_10808()Lnet/minecraft/class_2561;official lLsf;l()Lsw;named readTextLnet/minecraft/network/PacketByteBuf;readText()Lnet/minecraft/text/Text;
-
writeText
Writes a text to this buf. A text is represented by a JSON string with max length 262144.- Parameters:
text- the text to write- Returns:
- this buf, for chaining
- Throws:
EncoderException- if the JSON string written exceeds 262144 in length- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10805Lnet/minecraft/class_2540;method_10805(Lnet/minecraft/class_2561;)Lnet/minecraft/class_2540;official aLsf;a(Lsw;)Lsf;named writeTextLnet/minecraft/network/PacketByteBuf;writeText(Lnet/minecraft/text/Text;)Lnet/minecraft/network/PacketByteBuf;
-
readEnumConstant
Reads an enum constant from this buf. An enum constant is represented by a var int indicating its ordinal.- Parameters:
enumClass- the enum class, for constant lookup- Returns:
- the read enum constant
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10818Lnet/minecraft/class_2540;method_10818(Ljava/lang/Class;)Ljava/lang/Enum;official bLsf;b(Ljava/lang/Class;)Ljava/lang/Enum;named readEnumConstantLnet/minecraft/network/PacketByteBuf;readEnumConstant(Ljava/lang/Class;)Ljava/lang/Enum;
-
writeEnumConstant
Writes an enum constant to this buf. An enum constant is represented by a var int indicating its ordinal.- Parameters:
instance- the enum constant to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10817Lnet/minecraft/class_2540;method_10817(Ljava/lang/Enum;)Lnet/minecraft/class_2540;official aLsf;a(Ljava/lang/Enum;)Lsf;named writeEnumConstantLnet/minecraft/network/PacketByteBuf;writeEnumConstant(Ljava/lang/Enum;)Lnet/minecraft/network/PacketByteBuf;
-
readVarInt
public int readVarInt()Reads a single var int from this buf.- Returns:
- the value read
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10816Lnet/minecraft/class_2540;method_10816()Iofficial mLsf;m()Inamed readVarIntLnet/minecraft/network/PacketByteBuf;readVarInt()I
-
readVarLong
public long readVarLong()Reads a single var long from this buf.- Returns:
- the value read
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10792Lnet/minecraft/class_2540;method_10792()Jofficial nLsf;n()Jnamed readVarLongLnet/minecraft/network/PacketByteBuf;readVarLong()J
-
writeUuid
Writes a UUID (universally unique identifier) to this buf. A UUID is represented by two regular longs.- Parameters:
uuid- the UUID to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10797Lnet/minecraft/class_2540;method_10797(Ljava/util/UUID;)Lnet/minecraft/class_2540;official aLsf;a(Ljava/util/UUID;)Lsf;named writeUuidLnet/minecraft/network/PacketByteBuf;writeUuid(Ljava/util/UUID;)Lnet/minecraft/network/PacketByteBuf;
-
readUuid
Reads a UUID (universally unique identifier) from this buf. A UUID is represented by two regular longs.- Returns:
- the read UUID
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10790Lnet/minecraft/class_2540;method_10790()Ljava/util/UUID;official oLsf;o()Ljava/util/UUID;named readUuidLnet/minecraft/network/PacketByteBuf;readUuid()Ljava/util/UUID;
-
writeVarInt
Writes a single var int to this buf.Compared to regular ints, var ints may use less bytes (ranging from 1 to 5, where regular ints use 4) when representing smaller positive numbers.
- Parameters:
value- the value to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10804Lnet/minecraft/class_2540;method_10804(I)Lnet/minecraft/class_2540;official dLsf;d(I)Lsf;named writeVarIntLnet/minecraft/network/PacketByteBuf;writeVarInt(I)Lnet/minecraft/network/PacketByteBuf;
-
writeVarLong
Writes a single var long to this buf.Compared to regular longs, var longs may use less bytes when representing smaller positive numbers.
- Parameters:
value- the value to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10791Lnet/minecraft/class_2540;method_10791(J)Lnet/minecraft/class_2540;official bLsf;b(J)Lsf;named writeVarLongLnet/minecraft/network/PacketByteBuf;writeVarLong(J)Lnet/minecraft/network/PacketByteBuf;
-
writeNbt
Writes 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 intermediary method_10794Lnet/minecraft/class_2540;method_10794(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2540;official aLsf;a(Lqr;)Lsf;named writeNbtLnet/minecraft/network/PacketByteBuf;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/network/PacketByteBuf;
-
readNbt
Reads 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 readRuntimeException- if the compound exceeds the allowed maximum size- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10798Lnet/minecraft/class_2540;method_10798()Lnet/minecraft/class_2487;official pLsf;p()Lqr;named readNbtLnet/minecraft/network/PacketByteBuf;readNbt()Lnet/minecraft/nbt/NbtCompound;
-
readUnlimitedNbt
Reads 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 intermediary method_30617Lnet/minecraft/class_2540;method_30617()Lnet/minecraft/class_2487;official qLsf;q()Lqr;named readUnlimitedNbtLnet/minecraft/network/PacketByteBuf;readUnlimitedNbt()Lnet/minecraft/nbt/NbtCompound;
-
readNbt
Reads 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 readRuntimeException- if the compound exceeds the allowed maximum size- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_30616Lnet/minecraft/class_2540;method_30616(Lnet/minecraft/class_2505;)Lnet/minecraft/class_2487;official aLsf;a(Lra;)Lqr;named readNbtLnet/minecraft/network/PacketByteBuf;readNbt(Lnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtCompound;
-
writeItemStack
Writes an item stack to this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.- Parameters:
stack- the stack to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10793Lnet/minecraft/class_2540;method_10793(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2540;official aLsf;a(Lcfx;)Lsf;named writeItemStackLnet/minecraft/network/PacketByteBuf;writeItemStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/network/PacketByteBuf;
-
readItemStack
Reads an item stack from this buf. An item stack is represented by a boolean indicating whether it exists; if it exists, it is followed by a var int for its raw id, a byte for its count, and an NBT compound for its tag.- Returns:
- the read item stack
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10819Lnet/minecraft/class_2540;method_10819()Lnet/minecraft/class_1799;official rLsf;r()Lcfx;named readItemStackLnet/minecraft/network/PacketByteBuf;readItemStack()Lnet/minecraft/item/ItemStack;
-
readString
Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length of 32767.- Returns:
- the string read
- Throws:
DecoderException- if the string read exceeds the maximum length- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_19772Lnet/minecraft/class_2540;method_19772()Ljava/lang/String;official sLsf;s()Ljava/lang/String;named readStringLnet/minecraft/network/PacketByteBuf;readString()Ljava/lang/String;
-
readString
Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length ofmaxLength.- Parameters:
maxLength- the maximum length of the string read- Returns:
- the string read
- Throws:
DecoderException- if the string read is longer thanmaxLength- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10800Lnet/minecraft/class_2540;method_10800(I)Ljava/lang/String;official eLsf;e(I)Ljava/lang/String;named readStringLnet/minecraft/network/PacketByteBuf;readString(I)Ljava/lang/String;
-
writeString
Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length of 32767.- Parameters:
string- the string to write- Returns:
- this buf, for chaining
- Throws:
EncoderException- if the byte array of the string to write is longer than 32767- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10814Lnet/minecraft/class_2540;method_10814(Ljava/lang/String;)Lnet/minecraft/class_2540;official aLsf;a(Ljava/lang/String;)Lsf;named writeStringLnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;)Lnet/minecraft/network/PacketByteBuf;
-
writeString
Writes a string to this buf. A string is represented by a byte array of its UTF-8 data. That byte array can have a maximum length ofmaxLength.- Parameters:
string- the string to writemaxLength- 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 thanmaxLength- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10788Lnet/minecraft/class_2540;method_10788(Ljava/lang/String;I)Lnet/minecraft/class_2540;official aLsf;a(Ljava/lang/String;I)Lsf;named writeStringLnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;I)Lnet/minecraft/network/PacketByteBuf;
-
toEncodedStringLength
private static int toEncodedStringLength(int decodedLength) - Mappings:
Namespace Name Mixin selector intermediary method_44302Lnet/minecraft/class_2540;method_44302(I)Iofficial gLsf;g(I)Inamed toEncodedStringLengthLnet/minecraft/network/PacketByteBuf;toEncodedStringLength(I)I
-
readIdentifier
Reads an identifier from this buf. An identifier is represented by its string form. The read identifier's string form can have a max length of 32767.- Returns:
- the read identifier
- Throws:
DecoderException- if the identifier's string form is longer than 32767- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10810Lnet/minecraft/class_2540;method_10810()Lnet/minecraft/class_2960;official tLsf;t()Lacq;named readIdentifierLnet/minecraft/network/PacketByteBuf;readIdentifier()Lnet/minecraft/util/Identifier;
-
writeIdentifier
Writes an identifier to this buf. An identifier is represented by its string form. The written identifier's byte array can have a max length of 32767.- Parameters:
id- the identifier to write- Returns:
- this buf, for chaining
- Throws:
EncoderException- if theid's byte array is longer than 32767- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10812Lnet/minecraft/class_2540;method_10812(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2540;official aLsf;a(Lacq;)Lsf;named writeIdentifierLnet/minecraft/network/PacketByteBuf;writeIdentifier(Lnet/minecraft/util/Identifier;)Lnet/minecraft/network/PacketByteBuf;
-
readRegistryKey
Reads a registry key from this buf. A registry key is represented by its value as an identifier.- Parameters:
registryRef- the registry key of the registry the read registry key belongs to- Returns:
- the read registry key
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44112Lnet/minecraft/class_2540;method_44112(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;official aLsf;a(Lacp;)Lacp;named readRegistryKeyLnet/minecraft/network/PacketByteBuf;readRegistryKey(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryKey;
-
writeRegistryKey
Writes a registry key to this buf. A registry key is represented by its value as an identifier.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44116Lnet/minecraft/class_2540;method_44116(Lnet/minecraft/class_5321;)Vofficial bLsf;b(Lacp;)Vnamed writeRegistryKeyLnet/minecraft/network/PacketByteBuf;writeRegistryKey(Lnet/minecraft/registry/RegistryKey;)V
-
readDate
Reads a date from this buf. A date is represented by its time, a regular long.- Returns:
- the read date
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10802Lnet/minecraft/class_2540;method_10802()Ljava/util/Date;official uLsf;u()Ljava/util/Date;named readDateLnet/minecraft/network/PacketByteBuf;readDate()Ljava/util/Date;
-
writeDate
Writes a date to this buf. A date is represented by its time, a regular long.- Parameters:
date- the date to write- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_10796Lnet/minecraft/class_2540;method_10796(Ljava/util/Date;)Lnet/minecraft/class_2540;official aLsf;a(Ljava/util/Date;)Lsf;named writeDateLnet/minecraft/network/PacketByteBuf;writeDate(Ljava/util/Date;)Lnet/minecraft/network/PacketByteBuf;
-
readInstant
Reads an instant from this buf. An instant is represented by the milliseconds since the epoch.- Returns:
- the read instant
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44118Lnet/minecraft/class_2540;method_44118()Ljava/time/Instant;official vLsf;v()Ljava/time/Instant;named readInstantLnet/minecraft/network/PacketByteBuf;readInstant()Ljava/time/Instant;
-
writeInstant
Writes an instant to this buf. An instant is represented by the milliseconds since the epoch.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44115Lnet/minecraft/class_2540;method_44115(Ljava/time/Instant;)Vofficial aLsf;a(Ljava/time/Instant;)Vnamed writeInstantLnet/minecraft/network/PacketByteBuf;writeInstant(Ljava/time/Instant;)V
-
readPublicKey
Reads a public key from this buf. A public key is represented by a byte array of X.509-encoded payload.- Returns:
- the read public key
- Throws:
DecoderException- if the public key is malformed- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44119Lnet/minecraft/class_2540;method_44119()Ljava/security/PublicKey;official wLsf;w()Ljava/security/PublicKey;named readPublicKeyLnet/minecraft/network/PacketByteBuf;readPublicKey()Ljava/security/PublicKey;
-
writePublicKey
Writes a public key to this buf. A public key is represented by a byte array of X.509-encoded payload.- Returns:
- this buf, for chaining
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_44114Lnet/minecraft/class_2540;method_44114(Ljava/security/PublicKey;)Lnet/minecraft/class_2540;official aLsf;a(Ljava/security/PublicKey;)Lsf;named writePublicKeyLnet/minecraft/network/PacketByteBuf;writePublicKey(Ljava/security/PublicKey;)Lnet/minecraft/network/PacketByteBuf;
-
readBlockHitResult
Reads a block hit result from this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.- Returns:
- the read block hit result
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_17814Lnet/minecraft/class_2540;method_17814()Lnet/minecraft/class_3965;official xLsf;x()Ledw;named readBlockHitResultLnet/minecraft/network/PacketByteBuf;readBlockHitResult()Lnet/minecraft/util/hit/BlockHitResult;
-
writeBlockHitResult
Writes a block hit result to this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.- Parameters:
hitResult- the block hit result to write- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_17813Lnet/minecraft/class_2540;method_17813(Lnet/minecraft/class_3965;)Vofficial aLsf;a(Ledw;)Vnamed writeBlockHitResultLnet/minecraft/network/PacketByteBuf;writeBlockHitResult(Lnet/minecraft/util/hit/BlockHitResult;)V
-
readBitSet
Reads a bit set from this buf. A bit set is represented by a long array.- Returns:
- the read bit set
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_33558Lnet/minecraft/class_2540;method_33558()Ljava/util/BitSet;official yLsf;y()Ljava/util/BitSet;named readBitSetLnet/minecraft/network/PacketByteBuf;readBitSet()Ljava/util/BitSet;
-
writeBitSet
Writes a bit set to this buf. A bit set is represented by a long array.- Parameters:
bitSet- the bit set to write- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_33557Lnet/minecraft/class_2540;method_33557(Ljava/util/BitSet;)Vofficial aLsf;a(Ljava/util/BitSet;)Vnamed writeBitSetLnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;)V
-
readBitSet
Reads a bit set from this buf. A bit set is represented using its byte array representation.- Parameters:
size- the maximum size of the bit set- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_46254Lnet/minecraft/class_2540;method_46254(I)Ljava/util/BitSet;official fLsf;f(I)Ljava/util/BitSet;named readBitSetLnet/minecraft/network/PacketByteBuf;readBitSet(I)Ljava/util/BitSet;
-
writeBitSet
Writes a bit set to this buf. A bit set is represented using its byte array representation.- Parameters:
size- the maximum size of the bit set- Throws:
EncoderException- if the bit set's length is abovesize- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_46252Lnet/minecraft/class_2540;method_46252(Ljava/util/BitSet;I)Vofficial aLsf;a(Ljava/util/BitSet;I)Vnamed writeBitSetLnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;I)V
-
readGameProfile
public com.mojang.authlib.GameProfile readGameProfile()Reads a game profile from this buf. A game profile is represented by a uuid, a username string, and a collection of properties.- Returns:
- the game profile
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43623Lnet/minecraft/class_2540;method_43623()Lcom/mojang/authlib/GameProfile;official zLsf;z()Lcom/mojang/authlib/GameProfile;named readGameProfileLnet/minecraft/network/PacketByteBuf;readGameProfile()Lcom/mojang/authlib/GameProfile;
-
writeGameProfile
public void writeGameProfile(com.mojang.authlib.GameProfile gameProfile) Writes a game profile to this buf. A game profile is represented by a uuid, a username string, and a collection of properties.- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43616Lnet/minecraft/class_2540;method_43616(Lcom/mojang/authlib/GameProfile;)Vofficial aLsf;a(Lcom/mojang/authlib/GameProfile;)Vnamed writeGameProfileLnet/minecraft/network/PacketByteBuf;writeGameProfile(Lcom/mojang/authlib/GameProfile;)V
-
readPropertyMap
public 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 intermediary method_46255Lnet/minecraft/class_2540;method_46255()Lcom/mojang/authlib/properties/PropertyMap;official ALsf;A()Lcom/mojang/authlib/properties/PropertyMap;named readPropertyMapLnet/minecraft/network/PacketByteBuf;readPropertyMap()Lcom/mojang/authlib/properties/PropertyMap;
-
writePropertyMap
public 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 intermediary method_46249Lnet/minecraft/class_2540;method_46249(Lcom/mojang/authlib/properties/PropertyMap;)Vofficial aLsf;a(Lcom/mojang/authlib/properties/PropertyMap;)Vnamed writePropertyMapLnet/minecraft/network/PacketByteBuf;writePropertyMap(Lcom/mojang/authlib/properties/PropertyMap;)V
-
readProperty
public com.mojang.authlib.properties.Property readProperty()Reads a property from this buf. A property is represented by a string representing the property key, a string representing the property value, a boolean indicating whether the property is signed, and a string representing the signature (only exists if signed).- Returns:
- the property
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43624Lnet/minecraft/class_2540;method_43624()Lcom/mojang/authlib/properties/Property;official BLsf;B()Lcom/mojang/authlib/properties/Property;named readPropertyLnet/minecraft/network/PacketByteBuf;readProperty()Lcom/mojang/authlib/properties/Property;
-
writeProperty
public void writeProperty(com.mojang.authlib.properties.Property property) Writes a property to this buf. A property is represented by a string representing the property key, a string representing the property value, a boolean indicating whether the property is signed, and a string representing the signature (only exists if signed).- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_43617Lnet/minecraft/class_2540;method_43617(Lcom/mojang/authlib/properties/Property;)Vofficial aLsf;a(Lcom/mojang/authlib/properties/Property;)Vnamed writePropertyLnet/minecraft/network/PacketByteBuf;writeProperty(Lcom/mojang/authlib/properties/Property;)V
-
capacity
public int capacity() -
capacity
- Specified by:
capacityin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary capacityLnet/minecraft/class_2540;capacity(I)Lio/netty/buffer/ByteBuf;official capacityLsf;capacity(I)Lio/netty/buffer/ByteBuf;named capacityLnet/minecraft/network/PacketByteBuf;capacity(I)Lio/netty/buffer/ByteBuf;
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacityin classByteBuf
-
alloc
-
order
-
order
- Specified by:
orderin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary orderLnet/minecraft/class_2540;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;official orderLsf;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;named orderLnet/minecraft/network/PacketByteBuf;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;
-
unwrap
-
isDirect
public boolean isDirect() -
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classByteBuf
-
asReadOnly
- Specified by:
asReadOnlyin classByteBuf
-
readerIndex
public int readerIndex()- Specified by:
readerIndexin classByteBuf
-
readerIndex
- Specified by:
readerIndexin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readerIndexLnet/minecraft/class_2540;readerIndex(I)Lio/netty/buffer/ByteBuf;official readerIndexLsf;readerIndex(I)Lio/netty/buffer/ByteBuf;named readerIndexLnet/minecraft/network/PacketByteBuf;readerIndex(I)Lio/netty/buffer/ByteBuf;
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classByteBuf
-
writerIndex
- Specified by:
writerIndexin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writerIndexLnet/minecraft/class_2540;writerIndex(I)Lio/netty/buffer/ByteBuf;official writerIndexLsf;writerIndex(I)Lio/netty/buffer/ByteBuf;named writerIndexLnet/minecraft/network/PacketByteBuf;writerIndex(I)Lio/netty/buffer/ByteBuf;
-
setIndex
- Specified by:
setIndexin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setIndexLnet/minecraft/class_2540;setIndex(II)Lio/netty/buffer/ByteBuf;official setIndexLsf;setIndex(II)Lio/netty/buffer/ByteBuf;named setIndexLnet/minecraft/network/PacketByteBuf;setIndex(II)Lio/netty/buffer/ByteBuf;
-
readableBytes
public int readableBytes()- Specified by:
readableBytesin classByteBuf
-
writableBytes
public int writableBytes()- Specified by:
writableBytesin classByteBuf
-
maxWritableBytes
public int maxWritableBytes()- Specified by:
maxWritableBytesin classByteBuf
-
isReadable
public boolean isReadable()- Specified by:
isReadablein classByteBuf
-
isReadable
public boolean isReadable(int size) - Specified by:
isReadablein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary isReadableLnet/minecraft/class_2540;isReadable(I)Zofficial isReadableLsf;isReadable(I)Znamed isReadableLnet/minecraft/network/PacketByteBuf;isReadable(I)Z
-
isWritable
public boolean isWritable()- Specified by:
isWritablein classByteBuf
-
isWritable
public boolean isWritable(int size) - Specified by:
isWritablein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary isWritableLnet/minecraft/class_2540;isWritable(I)Zofficial isWritableLsf;isWritable(I)Znamed isWritableLnet/minecraft/network/PacketByteBuf;isWritable(I)Z
-
clear
-
markReaderIndex
- Specified by:
markReaderIndexin classByteBuf
-
resetReaderIndex
- Specified by:
resetReaderIndexin classByteBuf
-
markWriterIndex
- Specified by:
markWriterIndexin classByteBuf
-
resetWriterIndex
- Specified by:
resetWriterIndexin classByteBuf
-
discardReadBytes
- Specified by:
discardReadBytesin classByteBuf
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytesin classByteBuf
-
ensureWritable
- Specified by:
ensureWritablein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary ensureWritableLnet/minecraft/class_2540;ensureWritable(I)Lio/netty/buffer/ByteBuf;official ensureWritableLsf;ensureWritable(I)Lio/netty/buffer/ByteBuf;named ensureWritableLnet/minecraft/network/PacketByteBuf;ensureWritable(I)Lio/netty/buffer/ByteBuf;
-
ensureWritable
public int ensureWritable(int minBytes, boolean force) - Specified by:
ensureWritablein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary ensureWritableLnet/minecraft/class_2540;ensureWritable(IZ)Iofficial ensureWritableLsf;ensureWritable(IZ)Inamed ensureWritableLnet/minecraft/network/PacketByteBuf;ensureWritable(IZ)I
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBooleanLnet/minecraft/class_2540;getBoolean(I)Zofficial getBooleanLsf;getBoolean(I)Znamed getBooleanLnet/minecraft/network/PacketByteBuf;getBoolean(I)Z
-
getByte
public byte getByte(int index) -
getUnsignedByte
public short getUnsignedByte(int index) - Specified by:
getUnsignedBytein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedByteLnet/minecraft/class_2540;getUnsignedByte(I)Sofficial getUnsignedByteLsf;getUnsignedByte(I)Snamed getUnsignedByteLnet/minecraft/network/PacketByteBuf;getUnsignedByte(I)S
-
getShort
public short getShort(int index) -
getShortLE
public short getShortLE(int index) - Specified by:
getShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getShortLELnet/minecraft/class_2540;getShortLE(I)Sofficial getShortLELsf;getShortLE(I)Snamed getShortLELnet/minecraft/network/PacketByteBuf;getShortLE(I)S
-
getUnsignedShort
public int getUnsignedShort(int index) - Specified by:
getUnsignedShortin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedShortLnet/minecraft/class_2540;getUnsignedShort(I)Iofficial getUnsignedShortLsf;getUnsignedShort(I)Inamed getUnsignedShortLnet/minecraft/network/PacketByteBuf;getUnsignedShort(I)I
-
getUnsignedShortLE
public int getUnsignedShortLE(int index) - Specified by:
getUnsignedShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedShortLELnet/minecraft/class_2540;getUnsignedShortLE(I)Iofficial getUnsignedShortLELsf;getUnsignedShortLE(I)Inamed getUnsignedShortLELnet/minecraft/network/PacketByteBuf;getUnsignedShortLE(I)I
-
getMedium
public int getMedium(int index) -
getMediumLE
public int getMediumLE(int index) - Specified by:
getMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getMediumLELnet/minecraft/class_2540;getMediumLE(I)Iofficial getMediumLELsf;getMediumLE(I)Inamed getMediumLELnet/minecraft/network/PacketByteBuf;getMediumLE(I)I
-
getUnsignedMedium
public int getUnsignedMedium(int index) - Specified by:
getUnsignedMediumin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedMediumLnet/minecraft/class_2540;getUnsignedMedium(I)Iofficial getUnsignedMediumLsf;getUnsignedMedium(I)Inamed getUnsignedMediumLnet/minecraft/network/PacketByteBuf;getUnsignedMedium(I)I
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int index) - Specified by:
getUnsignedMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedMediumLELnet/minecraft/class_2540;getUnsignedMediumLE(I)Iofficial getUnsignedMediumLELsf;getUnsignedMediumLE(I)Inamed getUnsignedMediumLELnet/minecraft/network/PacketByteBuf;getUnsignedMediumLE(I)I
-
getInt
public int getInt(int index) -
getIntLE
public int getIntLE(int index) -
getUnsignedInt
public long getUnsignedInt(int index) - Specified by:
getUnsignedIntin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedIntLnet/minecraft/class_2540;getUnsignedInt(I)Jofficial getUnsignedIntLsf;getUnsignedInt(I)Jnamed getUnsignedIntLnet/minecraft/network/PacketByteBuf;getUnsignedInt(I)J
-
getUnsignedIntLE
public long getUnsignedIntLE(int index) - Specified by:
getUnsignedIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getUnsignedIntLELnet/minecraft/class_2540;getUnsignedIntLE(I)Jofficial getUnsignedIntLELsf;getUnsignedIntLE(I)Jnamed getUnsignedIntLELnet/minecraft/network/PacketByteBuf;getUnsignedIntLE(I)J
-
getLong
public long getLong(int index) -
getLongLE
public long getLongLE(int index) -
getChar
public char getChar(int index) -
getFloat
public float getFloat(int index) -
getDouble
public double getDouble(int index) -
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(I[B)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(I[B)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(I[B)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(I[BII)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(I[BII)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(I[BII)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;official getBytesLsf;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/nio/channels/GatheringByteChannel;I)Iofficial getBytesLsf;getBytes(ILjava/nio/channels/GatheringByteChannel;I)Inamed getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/nio/channels/FileChannel;JI)Iofficial getBytesLsf;getBytes(ILjava/nio/channels/FileChannel;JI)Inamed getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/FileChannel;JI)I
-
getCharSequence
- Specified by:
getCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary getCharSequenceLnet/minecraft/class_2540;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;official getCharSequenceLsf;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;named getCharSequenceLnet/minecraft/network/PacketByteBuf;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
-
setBoolean
- Specified by:
setBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBooleanLnet/minecraft/class_2540;setBoolean(IZ)Lio/netty/buffer/ByteBuf;official setBooleanLsf;setBoolean(IZ)Lio/netty/buffer/ByteBuf;named setBooleanLnet/minecraft/network/PacketByteBuf;setBoolean(IZ)Lio/netty/buffer/ByteBuf;
-
setByte
- Specified by:
setBytein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setByteLnet/minecraft/class_2540;setByte(II)Lio/netty/buffer/ByteBuf;official setByteLsf;setByte(II)Lio/netty/buffer/ByteBuf;named setByteLnet/minecraft/network/PacketByteBuf;setByte(II)Lio/netty/buffer/ByteBuf;
-
setShort
- Specified by:
setShortin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setShortLnet/minecraft/class_2540;setShort(II)Lio/netty/buffer/ByteBuf;official setShortLsf;setShort(II)Lio/netty/buffer/ByteBuf;named setShortLnet/minecraft/network/PacketByteBuf;setShort(II)Lio/netty/buffer/ByteBuf;
-
setShortLE
- Specified by:
setShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setShortLELnet/minecraft/class_2540;setShortLE(II)Lio/netty/buffer/ByteBuf;official setShortLELsf;setShortLE(II)Lio/netty/buffer/ByteBuf;named setShortLELnet/minecraft/network/PacketByteBuf;setShortLE(II)Lio/netty/buffer/ByteBuf;
-
setMedium
- Specified by:
setMediumin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setMediumLnet/minecraft/class_2540;setMedium(II)Lio/netty/buffer/ByteBuf;official setMediumLsf;setMedium(II)Lio/netty/buffer/ByteBuf;named setMediumLnet/minecraft/network/PacketByteBuf;setMedium(II)Lio/netty/buffer/ByteBuf;
-
setMediumLE
- Specified by:
setMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setMediumLELnet/minecraft/class_2540;setMediumLE(II)Lio/netty/buffer/ByteBuf;official setMediumLELsf;setMediumLE(II)Lio/netty/buffer/ByteBuf;named setMediumLELnet/minecraft/network/PacketByteBuf;setMediumLE(II)Lio/netty/buffer/ByteBuf;
-
setInt
- Specified by:
setIntin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setIntLnet/minecraft/class_2540;setInt(II)Lio/netty/buffer/ByteBuf;official setIntLsf;setInt(II)Lio/netty/buffer/ByteBuf;named setIntLnet/minecraft/network/PacketByteBuf;setInt(II)Lio/netty/buffer/ByteBuf;
-
setIntLE
- Specified by:
setIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setIntLELnet/minecraft/class_2540;setIntLE(II)Lio/netty/buffer/ByteBuf;official setIntLELsf;setIntLE(II)Lio/netty/buffer/ByteBuf;named setIntLELnet/minecraft/network/PacketByteBuf;setIntLE(II)Lio/netty/buffer/ByteBuf;
-
setLong
- Specified by:
setLongin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setLongLnet/minecraft/class_2540;setLong(IJ)Lio/netty/buffer/ByteBuf;official setLongLsf;setLong(IJ)Lio/netty/buffer/ByteBuf;named setLongLnet/minecraft/network/PacketByteBuf;setLong(IJ)Lio/netty/buffer/ByteBuf;
-
setLongLE
- Specified by:
setLongLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setLongLELnet/minecraft/class_2540;setLongLE(IJ)Lio/netty/buffer/ByteBuf;official setLongLELsf;setLongLE(IJ)Lio/netty/buffer/ByteBuf;named setLongLELnet/minecraft/network/PacketByteBuf;setLongLE(IJ)Lio/netty/buffer/ByteBuf;
-
setChar
- Specified by:
setCharin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setCharLnet/minecraft/class_2540;setChar(II)Lio/netty/buffer/ByteBuf;official setCharLsf;setChar(II)Lio/netty/buffer/ByteBuf;named setCharLnet/minecraft/network/PacketByteBuf;setChar(II)Lio/netty/buffer/ByteBuf;
-
setFloat
- Specified by:
setFloatin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setFloatLnet/minecraft/class_2540;setFloat(IF)Lio/netty/buffer/ByteBuf;official setFloatLsf;setFloat(IF)Lio/netty/buffer/ByteBuf;named setFloatLnet/minecraft/network/PacketByteBuf;setFloat(IF)Lio/netty/buffer/ByteBuf;
-
setDouble
- Specified by:
setDoublein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setDoubleLnet/minecraft/class_2540;setDouble(ID)Lio/netty/buffer/ByteBuf;official setDoubleLsf;setDouble(ID)Lio/netty/buffer/ByteBuf;named setDoubleLnet/minecraft/network/PacketByteBuf;setDouble(ID)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(I[B)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(I[B)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(I[B)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(I[BII)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(I[BII)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(I[BII)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;official setBytesLsf;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/io/InputStream;I)Iofficial setBytesLsf;setBytes(ILjava/io/InputStream;I)Inamed setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/io/InputStream;I)I
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)Iofficial setBytesLsf;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)Inamed setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/nio/channels/FileChannel;JI)Iofficial setBytesLsf;setBytes(ILjava/nio/channels/FileChannel;JI)Inamed setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/FileChannel;JI)I
-
setZero
- Specified by:
setZeroin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setZeroLnet/minecraft/class_2540;setZero(II)Lio/netty/buffer/ByteBuf;official setZeroLsf;setZero(II)Lio/netty/buffer/ByteBuf;named setZeroLnet/minecraft/network/PacketByteBuf;setZero(II)Lio/netty/buffer/ByteBuf;
-
setCharSequence
- Specified by:
setCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary setCharSequenceLnet/minecraft/class_2540;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)Iofficial setCharSequenceLsf;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)Inamed setCharSequenceLnet/minecraft/network/PacketByteBuf;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)I
-
readBoolean
public boolean readBoolean()- Specified by:
readBooleanin classByteBuf
-
readByte
public byte readByte() -
readUnsignedByte
public short readUnsignedByte()- Specified by:
readUnsignedBytein classByteBuf
-
readShort
public short readShort() -
readShortLE
public short readShortLE()- Specified by:
readShortLEin classByteBuf
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin classByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()- Specified by:
readUnsignedShortLEin classByteBuf
-
readMedium
public int readMedium()- Specified by:
readMediumin classByteBuf
-
readMediumLE
public int readMediumLE()- Specified by:
readMediumLEin classByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMediumin classByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()- Specified by:
readUnsignedMediumLEin classByteBuf
-
readInt
public int readInt() -
readIntLE
public int readIntLE() -
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedIntin classByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()- Specified by:
readUnsignedIntLEin classByteBuf
-
readLong
public long readLong() -
readLongLE
public long readLongLE()- Specified by:
readLongLEin classByteBuf
-
readChar
public char readChar() -
readFloat
public float readFloat() -
readDouble
public double readDouble()- Specified by:
readDoublein classByteBuf
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(I)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(I)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(I)Lio/netty/buffer/ByteBuf;
-
readSlice
- Specified by:
readSlicein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readSliceLnet/minecraft/class_2540;readSlice(I)Lio/netty/buffer/ByteBuf;official readSliceLsf;readSlice(I)Lio/netty/buffer/ByteBuf;named readSliceLnet/minecraft/network/PacketByteBuf;readSlice(I)Lio/netty/buffer/ByteBuf;
-
readRetainedSlice
- Specified by:
readRetainedSlicein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readRetainedSliceLnet/minecraft/class_2540;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;official readRetainedSliceLsf;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;named readRetainedSliceLnet/minecraft/network/PacketByteBuf;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes([B)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes([B)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes([B)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes([BII)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes([BII)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes([BII)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;official readBytesLsf;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/io/OutputStream;I)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/nio/channels/GatheringByteChannel;I)Iofficial readBytesLsf;readBytes(Ljava/nio/channels/GatheringByteChannel;I)Inamed readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
-
readCharSequence
- Specified by:
readCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary readCharSequenceLnet/minecraft/class_2540;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;official readCharSequenceLsf;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;named readCharSequenceLnet/minecraft/network/PacketByteBuf;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/nio/channels/FileChannel;JI)Iofficial readBytesLsf;readBytes(Ljava/nio/channels/FileChannel;JI)Inamed readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/FileChannel;JI)I
-
skipBytes
- Specified by:
skipBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary skipBytesLnet/minecraft/class_2540;skipBytes(I)Lio/netty/buffer/ByteBuf;official skipBytesLsf;skipBytes(I)Lio/netty/buffer/ByteBuf;named skipBytesLnet/minecraft/network/PacketByteBuf;skipBytes(I)Lio/netty/buffer/ByteBuf;
-
writeBoolean
- Specified by:
writeBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBooleanLnet/minecraft/class_2540;writeBoolean(Z)Lio/netty/buffer/ByteBuf;official writeBooleanLsf;writeBoolean(Z)Lio/netty/buffer/ByteBuf;named writeBooleanLnet/minecraft/network/PacketByteBuf;writeBoolean(Z)Lio/netty/buffer/ByteBuf;
-
writeByte
- Specified by:
writeBytein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeByteLnet/minecraft/class_2540;writeByte(I)Lio/netty/buffer/ByteBuf;official writeByteLsf;writeByte(I)Lio/netty/buffer/ByteBuf;named writeByteLnet/minecraft/network/PacketByteBuf;writeByte(I)Lio/netty/buffer/ByteBuf;
-
writeShort
- Specified by:
writeShortin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeShortLnet/minecraft/class_2540;writeShort(I)Lio/netty/buffer/ByteBuf;official writeShortLsf;writeShort(I)Lio/netty/buffer/ByteBuf;named writeShortLnet/minecraft/network/PacketByteBuf;writeShort(I)Lio/netty/buffer/ByteBuf;
-
writeShortLE
- Specified by:
writeShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeShortLELnet/minecraft/class_2540;writeShortLE(I)Lio/netty/buffer/ByteBuf;official writeShortLELsf;writeShortLE(I)Lio/netty/buffer/ByteBuf;named writeShortLELnet/minecraft/network/PacketByteBuf;writeShortLE(I)Lio/netty/buffer/ByteBuf;
-
writeMedium
- Specified by:
writeMediumin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeMediumLnet/minecraft/class_2540;writeMedium(I)Lio/netty/buffer/ByteBuf;official writeMediumLsf;writeMedium(I)Lio/netty/buffer/ByteBuf;named writeMediumLnet/minecraft/network/PacketByteBuf;writeMedium(I)Lio/netty/buffer/ByteBuf;
-
writeMediumLE
- Specified by:
writeMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeMediumLELnet/minecraft/class_2540;writeMediumLE(I)Lio/netty/buffer/ByteBuf;official writeMediumLELsf;writeMediumLE(I)Lio/netty/buffer/ByteBuf;named writeMediumLELnet/minecraft/network/PacketByteBuf;writeMediumLE(I)Lio/netty/buffer/ByteBuf;
-
writeInt
- Specified by:
writeIntin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeIntLnet/minecraft/class_2540;writeInt(I)Lio/netty/buffer/ByteBuf;official writeIntLsf;writeInt(I)Lio/netty/buffer/ByteBuf;named writeIntLnet/minecraft/network/PacketByteBuf;writeInt(I)Lio/netty/buffer/ByteBuf;
-
writeIntLE
- Specified by:
writeIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeIntLELnet/minecraft/class_2540;writeIntLE(I)Lio/netty/buffer/ByteBuf;official writeIntLELsf;writeIntLE(I)Lio/netty/buffer/ByteBuf;named writeIntLELnet/minecraft/network/PacketByteBuf;writeIntLE(I)Lio/netty/buffer/ByteBuf;
-
writeLong
- Specified by:
writeLongin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeLongLnet/minecraft/class_2540;writeLong(J)Lio/netty/buffer/ByteBuf;official writeLongLsf;writeLong(J)Lio/netty/buffer/ByteBuf;named writeLongLnet/minecraft/network/PacketByteBuf;writeLong(J)Lio/netty/buffer/ByteBuf;
-
writeLongLE
- Specified by:
writeLongLEin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeLongLELnet/minecraft/class_2540;writeLongLE(J)Lio/netty/buffer/ByteBuf;official writeLongLELsf;writeLongLE(J)Lio/netty/buffer/ByteBuf;named writeLongLELnet/minecraft/network/PacketByteBuf;writeLongLE(J)Lio/netty/buffer/ByteBuf;
-
writeChar
- Specified by:
writeCharin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeCharLnet/minecraft/class_2540;writeChar(I)Lio/netty/buffer/ByteBuf;official writeCharLsf;writeChar(I)Lio/netty/buffer/ByteBuf;named writeCharLnet/minecraft/network/PacketByteBuf;writeChar(I)Lio/netty/buffer/ByteBuf;
-
writeFloat
- Specified by:
writeFloatin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeFloatLnet/minecraft/class_2540;writeFloat(F)Lio/netty/buffer/ByteBuf;official writeFloatLsf;writeFloat(F)Lio/netty/buffer/ByteBuf;named writeFloatLnet/minecraft/network/PacketByteBuf;writeFloat(F)Lio/netty/buffer/ByteBuf;
-
writeDouble
- Specified by:
writeDoublein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeDoubleLnet/minecraft/class_2540;writeDouble(D)Lio/netty/buffer/ByteBuf;official writeDoubleLsf;writeDouble(D)Lio/netty/buffer/ByteBuf;named writeDoubleLnet/minecraft/network/PacketByteBuf;writeDouble(D)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes([B)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes([B)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes([B)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes([BII)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes([BII)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes([BII)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;official writeBytesLsf;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/io/InputStream;I)Iofficial writeBytesLsf;writeBytes(Ljava/io/InputStream;I)Inamed writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/io/InputStream;I)I
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)Iofficial writeBytesLsf;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)Inamed writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/FileChannel;JI)Iofficial writeBytesLsf;writeBytes(Ljava/nio/channels/FileChannel;JI)Inamed writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/FileChannel;JI)I
-
writeZero
- Specified by:
writeZeroin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeZeroLnet/minecraft/class_2540;writeZero(I)Lio/netty/buffer/ByteBuf;official writeZeroLsf;writeZero(I)Lio/netty/buffer/ByteBuf;named writeZeroLnet/minecraft/network/PacketByteBuf;writeZero(I)Lio/netty/buffer/ByteBuf;
-
writeCharSequence
- Specified by:
writeCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary writeCharSequenceLnet/minecraft/class_2540;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Iofficial writeCharSequenceLsf;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Inamed writeCharSequenceLnet/minecraft/network/PacketByteBuf;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
-
indexOf
public int indexOf(int from, int to, byte value) -
bytesBefore
public int bytesBefore(byte value) - Specified by:
bytesBeforein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(B)Iofficial bytesBeforeLsf;bytesBefore(B)Inamed bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(B)I
-
bytesBefore
public int bytesBefore(int length, byte value) - Specified by:
bytesBeforein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(IB)Iofficial bytesBeforeLsf;bytesBefore(IB)Inamed bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(IB)I
-
bytesBefore
public int bytesBefore(int index, int length, byte value) - Specified by:
bytesBeforein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(IIB)Iofficial bytesBeforeLsf;bytesBefore(IIB)Inamed bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(IIB)I
-
forEachByte
- Specified by:
forEachBytein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary forEachByteLnet/minecraft/class_2540;forEachByte(Lio/netty/util/ByteProcessor;)Iofficial forEachByteLsf;forEachByte(Lio/netty/util/ByteProcessor;)Inamed forEachByteLnet/minecraft/network/PacketByteBuf;forEachByte(Lio/netty/util/ByteProcessor;)I
-
forEachByte
- Specified by:
forEachBytein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary forEachByteLnet/minecraft/class_2540;forEachByte(IILio/netty/util/ByteProcessor;)Iofficial forEachByteLsf;forEachByte(IILio/netty/util/ByteProcessor;)Inamed forEachByteLnet/minecraft/network/PacketByteBuf;forEachByte(IILio/netty/util/ByteProcessor;)I
-
forEachByteDesc
- Specified by:
forEachByteDescin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary forEachByteDescLnet/minecraft/class_2540;forEachByteDesc(Lio/netty/util/ByteProcessor;)Iofficial forEachByteDescLsf;forEachByteDesc(Lio/netty/util/ByteProcessor;)Inamed forEachByteDescLnet/minecraft/network/PacketByteBuf;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
-
forEachByteDesc
- Specified by:
forEachByteDescin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary forEachByteDescLnet/minecraft/class_2540;forEachByteDesc(IILio/netty/util/ByteProcessor;)Iofficial forEachByteDescLsf;forEachByteDesc(IILio/netty/util/ByteProcessor;)Inamed forEachByteDescLnet/minecraft/network/PacketByteBuf;forEachByteDesc(IILio/netty/util/ByteProcessor;)I
-
copy
-
copy
-
slice
-
retainedSlice
- Specified by:
retainedSlicein classByteBuf
-
slice
-
retainedSlice
- Specified by:
retainedSlicein classByteBuf- Mappings:
Namespace Name Mixin selector intermediary retainedSliceLnet/minecraft/class_2540;retainedSlice(II)Lio/netty/buffer/ByteBuf;official retainedSliceLsf;retainedSlice(II)Lio/netty/buffer/ByteBuf;named retainedSliceLnet/minecraft/network/PacketByteBuf;retainedSlice(II)Lio/netty/buffer/ByteBuf;
-
duplicate
-
retainedDuplicate
- Specified by:
retainedDuplicatein classByteBuf
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCountin classByteBuf
-
nioBuffer
-
nioBuffer
- Specified by:
nioBufferin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary nioBufferLnet/minecraft/class_2540;nioBuffer(II)Ljava/nio/ByteBuffer;official nioBufferLsf;nioBuffer(II)Ljava/nio/ByteBuffer;named nioBufferLnet/minecraft/network/PacketByteBuf;nioBuffer(II)Ljava/nio/ByteBuffer;
-
internalNioBuffer
- Specified by:
internalNioBufferin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary internalNioBufferLnet/minecraft/class_2540;internalNioBuffer(II)Ljava/nio/ByteBuffer;official internalNioBufferLsf;internalNioBuffer(II)Ljava/nio/ByteBuffer;named internalNioBufferLnet/minecraft/network/PacketByteBuf;internalNioBuffer(II)Ljava/nio/ByteBuffer;
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary nioBuffersLnet/minecraft/class_2540;nioBuffers(II)[Ljava/nio/ByteBuffer;official nioBuffersLsf;nioBuffers(II)[Ljava/nio/ByteBuffer;named nioBuffersLnet/minecraft/network/PacketByteBuf;nioBuffers(II)[Ljava/nio/ByteBuffer;
-
hasArray
public boolean hasArray() -
array
public byte[] array() -
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin classByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddressin classByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddressin classByteBuf
-
toString
- Specified by:
toStringin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary toStringLnet/minecraft/class_2540;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;official toStringLsf;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;named toStringLnet/minecraft/network/PacketByteBuf;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
-
toString
- Specified by:
toStringin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary toStringLnet/minecraft/class_2540;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;official toStringLsf;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;named toStringLnet/minecraft/network/PacketByteBuf;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ByteBuf>- Specified by:
compareToin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary compareToLnet/minecraft/class_2540;compareTo(Lio/netty/buffer/ByteBuf;)Iofficial compareToLsf;compareTo(Lio/netty/buffer/ByteBuf;)Inamed compareToLnet/minecraft/network/PacketByteBuf;compareTo(Lio/netty/buffer/ByteBuf;)I
-
toString
-
retain
- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary retainLnet/minecraft/class_2540;retain(I)Lio/netty/buffer/ByteBuf;official retainLsf;retain(I)Lio/netty/buffer/ByteBuf;named retainLnet/minecraft/network/PacketByteBuf;retain(I)Lio/netty/buffer/ByteBuf;
-
retain
- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary retainLnet/minecraft/class_2540;retain()Lio/netty/buffer/ByteBuf;official retainLsf;retain()Lio/netty/buffer/ByteBuf;named retainLnet/minecraft/network/PacketByteBuf;retain()Lio/netty/buffer/ByteBuf;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary touchLnet/minecraft/class_2540;touch()Lio/netty/buffer/ByteBuf;official touchLsf;touch()Lio/netty/buffer/ByteBuf;named touchLnet/minecraft/network/PacketByteBuf;touch()Lio/netty/buffer/ByteBuf;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin classByteBuf- Mappings:
Namespace Name Mixin selector intermediary touchLnet/minecraft/class_2540;touch(Ljava/lang/Object;)Lio/netty/buffer/ByteBuf;official touchLsf;touch(Ljava/lang/Object;)Lio/netty/buffer/ByteBuf;named touchLnet/minecraft/network/PacketByteBuf;touch(Ljava/lang/Object;)Lio/netty/buffer/ByteBuf;
-
refCnt
public int refCnt() -
release
public boolean release() -
release
public boolean release(int decrement) - Mappings:
Namespace Name Mixin selector intermediary releaseLnet/minecraft/class_2540;release(I)Zofficial releaseLsf;release(I)Znamed releaseLnet/minecraft/network/PacketByteBuf;release(I)Z
-