Class PacketByteBuf
- All Implemented Interfaces:
ByteBufConvertible,ReferenceCounted,Comparable<ByteBuf>
- Direct Known Subclasses:
RegistryByteBuf
All read and write methods throw IndexOutOfBoundsException if there is not enough bytes to be read or
not enough space to write.
- Mappings:
Namespace Name named net/minecraft/network/PacketByteBufintermediary net/minecraft/class_2540official vw
-
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 for serialized texts.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 int2) clear()intcopy()copy(int index, int length) <T> Tdecode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec) Deprecated.<T> Tdecode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, NbtSizeTracker sizeTracker) Deprecated.<T> Tdecode(IntFunction<T> idToValue) Reads a var int representing an ID, then returns the value converted byidToValue.<T> TdecodeAsJson(com.mojang.serialization.Codec<T> codec) Reads an object from this buf as a JSON element with the given codec.<T> PacketByteBufencode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value) Deprecated.<T> PacketByteBufencode(ToIntFunction<T> valueToId, T value) Convertsvalueto an integer representing its ID, then writes a var int representation of such ID.<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 int2) 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 int2, byte[] byte2) getBytes(int int2, byte[] byte2, int int3, int int4) getBytes(int int2, OutputStream outputStream, int int3) getBytes(int int2, ByteBuffer byteBuffer) 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) booleanhasArray()inthashCode()booleanintindexOf(int from, int to, byte value) internalNioBuffer(int index, int length) booleanbooleanisDirect()booleanbooleanisReadable(int size) booleanbooleanbooleanisWritable(int size) intintintlongnioBuffer(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.static BlockPosreadBlockPos(ByteBuf 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.static byte[]readByteArray(ByteBuf buf) static byte[]readByteArray(ByteBuf buf, int maxSize) readBytes(byte[] byte2) readBytes(byte[] byte2, int int2, int int3) readBytes(int length) readBytes(OutputStream outputStream, int int2) readBytes(ByteBuffer byteBuffer) 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, PacketDecoder<? super PacketByteBuf, T> reader) Reads a collection from this buf.readDate()Reads a date from this buf.double<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 int2) floatReads 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.<T> List<T> readList(PacketDecoder<? super PacketByteBuf, 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, PacketDecoder<? super PacketByteBuf, K> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) Reads a map from this buf.<K,V> Map <K, V> readMap(PacketDecoder<? super PacketByteBuf, K> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) Reads a map from this buf as a hash map.intintreadNbt()Reads an NBT compound from this buf.static @Nullable NbtCompoundstatic @Nullable NbtElementreadNbt(ByteBuf buf, NbtSizeTracker sizeTracker) readNbt(NbtSizeTracker sizeTracker) Reads an NBT element from this buf.static <T,B extends ByteBuf>
TreadNullable(B buf, PacketDecoder<? super B, T> reader) <T> TreadNullable(PacketDecoder<? super PacketByteBuf, T> reader) Reads a nullable value from this buf.<T> Optional<T> readOptional(PacketDecoder<? super PacketByteBuf, T> reader) Reads an optional value from this buf.Reads a public key from this buf.Reads aQuaternionffrom this buf.static QuaternionfreadQuaternionf(ByteBuf buf) <T> RegistryKey<T> readRegistryKey(RegistryKey<? extends Registry<T>> registryRef) Reads a registry key from this buf.<T> RegistryKey<? extends Registry<T>> Reads a registry key referencing another registry key from this buf.readRetainedSlice(int length) shortshortreadSlice(int length) Reads a string from this buf.readString(int maxLength) Reads a string from this buf.shortlonglongintintintintreadUuid()Reads a UUID (universally unique identifier) from this buf.static UUIDintReads a single var int from this buf.longReads a single var long from this buf.Reads aVec3dfrom this buf.Reads aVector3ffrom this buf.static Vector3freadVector3f(ByteBuf buf) intrefCnt()booleanrelease()booleanrelease(int decrement) retain()retain(int int2) retainedSlice(int index, int length) setBoolean(int int2, boolean bool) setByte(int int2, int int3) setBytes(int int2, byte[] byte2) setBytes(int int2, byte[] byte2, int int3, int int4) intsetBytes(int index, InputStream stream, int length) setBytes(int int2, ByteBuffer byteBuffer) intsetBytes(int index, FileChannel channel, long pos, int length) intsetBytes(int index, ScatteringByteChannel channel, int length) setChar(int int2, int int3) intsetCharSequence(int index, CharSequence sequence, Charset charset) setDouble(int int2, double double2) setFloat(int int2, float float2) setIndex(int int2, int int3) setInt(int int2, int int3) setIntLE(int int2, int int3) setLong(int int2, long long2) setLongLE(int int2, long long2) setMedium(int int2, int int3) setMediumLE(int int2, int int3) setShort(int int2, int int3) setShortLE(int int2, int int3) setZero(int int2, int int3) skipBytes(int int2) slice()slice(int index, int length) 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.static voidwriteBlockPos(ByteBuf buf, BlockPos pos) writeBlockPos(BlockPos pos) Writes a block position to this buf.writeBoolean(boolean bool) writeByte(int int2) writeByteArray(byte[] array) Writes an array of primitive bytes to this buf.static voidwriteByteArray(ByteBuf buf, byte[] array) writeBytes(byte[] byte2) writeBytes(byte[] byte2, int int2, int int3) writeBytes(ByteBuf byteBuf) writeBytes(ByteBuf byteBuf, int int2) writeBytes(ByteBuf byteBuf, int int2, int int3) intwriteBytes(InputStream stream, int length) writeBytes(ByteBuffer byteBuffer) intwriteBytes(FileChannel channel, long pos, int length) intwriteBytes(ScatteringByteChannel channel, int length) writeChar(int int2) 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, PacketEncoder<? super PacketByteBuf, T> writer) Writes a collection to this buf.Writes a date to this buf.writeDouble(double double2) 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 float2) 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 int2) writeIntArray(int[] array) Writes an array of primitive ints to this buf.writeIntLE(int int2) voidwriteIntList(IntList list) Writes a list of primitive ints from this buf.writeLong(long long2) writeLongArray(long[] array) Writes an array of primitive longs to this buf.writeLongLE(long long2) <K,V> void writeMap(Map<K, V> map, PacketEncoder<? super PacketByteBuf, K> keyWriter, PacketEncoder<? super PacketByteBuf, V> valueWriter) Writes a map to this buf.writeMedium(int int2) writeMediumLE(int int2) static voidwriteNbt(ByteBuf buf, @Nullable NbtElement nbt) writeNbt(@Nullable NbtElement nbt) Writes an NBT element to this buf.static <T,B extends ByteBuf>
voidwriteNullable(B buf, T value, PacketEncoder<? super B, T> writer) <T> voidwriteNullable(T value, PacketEncoder<? super PacketByteBuf, T> writer) Writes a nullable value to this buf.<T> voidwriteOptional(Optional<T> value, PacketEncoder<? super PacketByteBuf, T> writer) Writes an optional value to this buf.writePublicKey(PublicKey publicKey) Writes a public key to this buf.static voidwriteQuaternionf(ByteBuf buf, Quaternionf quaternion) voidwriteQuaternionf(Quaternionf quaternionf) Writes aQuaternionfto this buf.voidwriteRegistryKey(RegistryKey<?> key) Writes a registry key to this buf.intwriterIndex(int int2) writeShort(int int2) writeShortLE(int int2) writeString(String string) Writes a string to this buf.writeString(String string, int maxLength) Writes a string to this buf.static voidWrites 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.voidwriteVec3d(Vec3d vec) Writes aVec3dto this buf.static voidwriteVector3f(ByteBuf buf, Vector3f vector) voidwriteVector3f(Vector3f vector3f) Writes aVector3fto this buf.writeZero(int int2) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Field Details
-
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 named MAX_READ_NBT_SIZELnet/minecraft/network/PacketByteBuf;MAX_READ_NBT_SIZE:Iintermediary field_33287Lnet/minecraft/class_2540;field_33287:Iofficial aLvw;a: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 named DEFAULT_MAX_STRING_LENGTHLnet/minecraft/network/PacketByteBuf;DEFAULT_MAX_STRING_LENGTH:Sintermediary field_33283Lnet/minecraft/class_2540;field_33283:Sofficial bLvw;b:S
-
MAX_TEXT_LENGTH
public static final int MAX_TEXT_LENGTHThe maximum size, in terms of JSON string length, allowed for serialized texts.- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TEXT_LENGTHLnet/minecraft/network/PacketByteBuf;MAX_TEXT_LENGTH:Iintermediary field_33284Lnet/minecraft/class_2540;field_33284:Iofficial cLvw;c:I
-
field_39381
private static final int field_39381- See Also:
- Mappings:
Namespace Name Mixin selector named field_39381Lnet/minecraft/network/PacketByteBuf;field_39381:Iintermediary field_39381Lnet/minecraft/class_2540;field_39381:Iofficial eLvw;e:I
-
field_39382
private static final int field_39382- See Also:
- Mappings:
Namespace Name Mixin selector named field_39382Lnet/minecraft/network/PacketByteBuf;field_39382:Iintermediary field_39382Lnet/minecraft/class_2540;field_39382:Iofficial fLvw;f:I
-
field_39383
private static final int field_39383- See Also:
- Mappings:
Namespace Name Mixin selector named field_39383Lnet/minecraft/network/PacketByteBuf;field_39383:Iintermediary field_39383Lnet/minecraft/class_2540;field_39383:Iofficial gLvw;g:I
-
GSON
- Mappings:
Namespace Name Mixin selector named GSONLnet/minecraft/network/PacketByteBuf;GSON:Lcom/google/gson/Gson;intermediary field_42966Lnet/minecraft/class_2540;field_42966:Lcom/google/gson/Gson;official hLvw;h:Lcom/google/gson/Gson;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/network/PacketByteBuf;parent:Lio/netty/buffer/ByteBuf;intermediary field_11695Lnet/minecraft/class_2540;field_11695:Lio/netty/buffer/ByteBuf;official dLvw;d: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 named <init>Lnet/minecraft/network/PacketByteBuf;<init>(Lio/netty/buffer/ByteBuf;)Vintermediary <init>Lnet/minecraft/class_2540;<init>(Lio/netty/buffer/ByteBuf;)Vofficial <init>Lvw;<init>(Lio/netty/buffer/ByteBuf;)V
-
-
Method Details
-
decode
@Deprecated public <T> T decode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec) Deprecated.Reads an object from this buf as a compound NBT with the given codec.- Type Parameters:
T- the decoded object's type- Returns:
- the read object
- Throws:
EncoderException- if thecodecfails to decode the compound NBT- See Also:
- Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/network/PacketByteBuf;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;intermediary method_52954Lnet/minecraft/class_2540;method_52954(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;official aLvw;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
-
decode
@Deprecated public <T> T decode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, NbtSizeTracker sizeTracker) Deprecated.Reads an object from this buf as a compound NBT with the given codec.- Type Parameters:
T- the decoded object's type- Returns:
- the read object
- Throws:
EncoderException- if thecodecfails to decode the compound NBT- See Also:
- Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/network/PacketByteBuf;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/nbt/NbtSizeTracker;)Ljava/lang/Object;intermediary method_29171Lnet/minecraft/class_2540;method_29171(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2505;)Ljava/lang/Object;official aLvw;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Luk;)Ljava/lang/Object;
-
encode
@Deprecated public <T> PacketByteBuf encode(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, T value) Deprecated.Writes an object to this buf as a compound NBT with the given codec.- Type Parameters:
T- the encoded object's type- Throws:
EncoderException- if thecodecfails to encode the compound NBT- See Also:
- Mappings:
Namespace Name Mixin selector named encodeLnet/minecraft/network/PacketByteBuf;encode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;intermediary method_29172Lnet/minecraft/class_2540;method_29172(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lnet/minecraft/class_2540;official aLvw;a(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Lvw;
-
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 named decodeAsJsonLnet/minecraft/network/PacketByteBuf;decodeAsJson(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;intermediary method_49394Lnet/minecraft/class_2540;method_49394(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;official aLvw;a(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;
-
encodeAsJson
public <T> void encodeAsJson(com.mojang.serialization.Codec<T> codec, T value) Writes an object to this buf as a JSON element with the given codec.- Type Parameters:
T- the encoded object's type- Throws:
EncoderException- if thecodecfails to encode the JSON element- See Also:
- Mappings:
Namespace Name Mixin selector named encodeAsJsonLnet/minecraft/network/PacketByteBuf;encodeAsJson(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vintermediary method_49395Lnet/minecraft/class_2540;method_49395(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)Vofficial aLvw;a(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V
-
getMaxValidator
- Mappings:
Namespace Name Mixin selector named getMaxValidatorLnet/minecraft/network/PacketByteBuf;getMaxValidator(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;intermediary method_37453Lnet/minecraft/class_2540;method_37453(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;official aLvw;a(Ljava/util/function/IntFunction;I)Ljava/util/function/IntFunction;
-
readCollection
public <T,C extends Collection<T>> C readCollection(IntFunction<C> collectionFactory, PacketDecoder<? super PacketByteBuf, T> reader) Reads a collection from this buf. The collection is stored as a leading var int size followed by the entries sequentially.- Type Parameters:
T- the collection's entry 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 named readCollectionLnet/minecraft/network/PacketByteBuf;readCollection(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Collection;intermediary method_34068Lnet/minecraft/class_2540;method_34068(Ljava/util/function/IntFunction;Lnet/minecraft/class_9141;)Ljava/util/Collection;official aLvw;a(Ljava/util/function/IntFunction;Lyy;)Ljava/util/Collection;
-
writeCollection
public <T> void writeCollection(Collection<T> collection, PacketEncoder<? super PacketByteBuf, T> writer) Writes a collection to this buf. The collection is stored as a leading var int size followed by the entries sequentially.- Type Parameters:
T- the list's entry type- Parameters:
collection- the collection to write- See Also:
- Mappings:
Namespace Name Mixin selector named writeCollectionLnet/minecraft/network/PacketByteBuf;writeCollection(Ljava/util/Collection;Lnet/minecraft/network/codec/PacketEncoder;)Vintermediary method_34062Lnet/minecraft/class_2540;method_34062(Ljava/util/Collection;Lnet/minecraft/class_9142;)Vofficial aLvw;a(Ljava/util/Collection;Lyz;)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 named readListLnet/minecraft/network/PacketByteBuf;readList(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/List;intermediary method_34066Lnet/minecraft/class_2540;method_34066(Lnet/minecraft/class_9141;)Ljava/util/List;official aLvw;a(Lyy;)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 named readIntListLnet/minecraft/network/PacketByteBuf;readIntList()Lit/unimi/dsi/fastutil/ints/IntList;intermediary method_34059Lnet/minecraft/class_2540;method_34059()Lit/unimi/dsi/fastutil/ints/IntList;official aLvw;a()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 named writeIntListLnet/minecraft/network/PacketByteBuf;writeIntList(Lit/unimi/dsi/fastutil/ints/IntList;)Vintermediary method_34060Lnet/minecraft/class_2540;method_34060(Lit/unimi/dsi/fastutil/ints/IntList;)Vofficial aLvw;a(Lit/unimi/dsi/fastutil/ints/IntList;)V
-
readMap
public <K,V, M readMapM extends Map<K, V>> (IntFunction<M> mapFactory, PacketDecoder<? super PacketByteBuf, K> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) Reads a map from this buf. The map is stored as a leading var int size followed by each key and value pair.- Type Parameters:
K- the key 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 named readMapLnet/minecraft/network/PacketByteBuf;readMap(Ljava/util/function/IntFunction;Lnet/minecraft/network/codec/PacketDecoder;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Map;intermediary method_34069Lnet/minecraft/class_2540;method_34069(Ljava/util/function/IntFunction;Lnet/minecraft/class_9141;Lnet/minecraft/class_9141;)Ljava/util/Map;official aLvw;a(Ljava/util/function/IntFunction;Lyy;Lyy;)Ljava/util/Map;
-
readMap
public <K,V> Map<K,V> readMap(PacketDecoder<? super PacketByteBuf, K> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) Reads a map from this buf as a hash map.- Type Parameters:
K- the key typeV- the value type- Returns:
- the read map
- See Also:
- Mappings:
Namespace Name Mixin selector named readMapLnet/minecraft/network/PacketByteBuf;readMap(Lnet/minecraft/network/codec/PacketDecoder;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Map;intermediary method_34067Lnet/minecraft/class_2540;method_34067(Lnet/minecraft/class_9141;Lnet/minecraft/class_9141;)Ljava/util/Map;official aLvw;a(Lyy;Lyy;)Ljava/util/Map;
-
writeMap
public <K,V> void writeMap(Map<K, V> map, PacketEncoder<? super PacketByteBuf, K> keyWriter, PacketEncoder<? super PacketByteBuf, V> valueWriter) Writes a map to this buf. The map is stored as a leading var int size followed by each key and value pair.- Type Parameters:
K- the key typeV- the value type- Parameters:
map- the map to write- See Also:
- Mappings:
Namespace Name Mixin selector named writeMapLnet/minecraft/network/PacketByteBuf;writeMap(Ljava/util/Map;Lnet/minecraft/network/codec/PacketEncoder;Lnet/minecraft/network/codec/PacketEncoder;)Vintermediary method_34063Lnet/minecraft/class_2540;method_34063(Ljava/util/Map;Lnet/minecraft/class_9142;Lnet/minecraft/class_9142;)Vofficial aLvw;a(Ljava/util/Map;Lyz;Lyz;)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 named forEachInCollectionLnet/minecraft/network/PacketByteBuf;forEachInCollection(Ljava/util/function/Consumer;)Vintermediary method_34065Lnet/minecraft/class_2540;method_34065(Ljava/util/function/Consumer;)Vofficial aLvw;a(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 named writeEnumSetLnet/minecraft/network/PacketByteBuf;writeEnumSet(Ljava/util/EnumSet;Ljava/lang/Class;)Vintermediary method_46253Lnet/minecraft/class_2540;method_46253(Ljava/util/EnumSet;Ljava/lang/Class;)Vofficial aLvw;a(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 named readEnumSetLnet/minecraft/network/PacketByteBuf;readEnumSet(Ljava/lang/Class;)Ljava/util/EnumSet;intermediary method_46251Lnet/minecraft/class_2540;method_46251(Ljava/lang/Class;)Ljava/util/EnumSet;official aLvw;a(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 named writeOptionalLnet/minecraft/network/PacketByteBuf;writeOptional(Ljava/util/Optional;Lnet/minecraft/network/codec/PacketEncoder;)Vintermediary method_37435Lnet/minecraft/class_2540;method_37435(Ljava/util/Optional;Lnet/minecraft/class_9142;)Vofficial aLvw;a(Ljava/util/Optional;Lyz;)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 named readOptionalLnet/minecraft/network/PacketByteBuf;readOptional(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/util/Optional;intermediary method_37436Lnet/minecraft/class_2540;method_37436(Lnet/minecraft/class_9141;)Ljava/util/Optional;official bLvw;b(Lyy;)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 named readNullableLnet/minecraft/network/PacketByteBuf;readNullable(Lnet/minecraft/network/codec/PacketDecoder;)Ljava/lang/Object;intermediary method_43827Lnet/minecraft/class_2540;method_43827(Lnet/minecraft/class_9141;)Ljava/lang/Object;official cLvw;c(Lyy;)Ljava/lang/Object;
-
readNullable
@Nullable public static <T,B extends ByteBuf> T readNullable(B buf, PacketDecoder<? super B, T> reader) - Mappings:
Namespace Name Mixin selector named readNullableLnet/minecraft/network/PacketByteBuf;readNullable(Lio/netty/buffer/ByteBuf;Lnet/minecraft/network/codec/PacketDecoder;)Ljava/lang/Object;intermediary method_56893Lnet/minecraft/class_2540;method_56893(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_9141;)Ljava/lang/Object;official aLvw;a(Lio/netty/buffer/ByteBuf;Lyy;)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 named writeNullableLnet/minecraft/network/PacketByteBuf;writeNullable(Ljava/lang/Object;Lnet/minecraft/network/codec/PacketEncoder;)Vintermediary method_43826Lnet/minecraft/class_2540;method_43826(Ljava/lang/Object;Lnet/minecraft/class_9142;)Vofficial aLvw;a(Ljava/lang/Object;Lyz;)V
-
writeNullable
public static <T,B extends ByteBuf> void writeNullable(B buf, @Nullable T value, PacketEncoder<? super B, T> writer) - Mappings:
Namespace Name Mixin selector named writeNullableLnet/minecraft/network/PacketByteBuf;writeNullable(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lnet/minecraft/network/codec/PacketEncoder;)Vintermediary method_56892Lnet/minecraft/class_2540;method_56892(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lnet/minecraft/class_9142;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Ljava/lang/Object;Lyz;)V
-
readByteArray
public byte[] readByteArray()Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
- Mappings:
Namespace Name Mixin selector named readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray()[Bintermediary method_10795Lnet/minecraft/class_2540;method_10795()[Bofficial bLvw;b()[B
-
readByteArray
- Mappings:
Namespace Name Mixin selector named readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray(Lio/netty/buffer/ByteBuf;)[Bintermediary method_56890Lnet/minecraft/class_2540;method_56890(Lio/netty/buffer/ByteBuf;)[Bofficial aLvw;a(Lio/netty/buffer/ByteBuf;)[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 named writeByteArrayLnet/minecraft/network/PacketByteBuf;writeByteArray([B)Lnet/minecraft/network/PacketByteBuf;intermediary method_10813Lnet/minecraft/class_2540;method_10813([B)Lnet/minecraft/class_2540;official aLvw;a([B)Lvw;
-
writeByteArray
- Mappings:
Namespace Name Mixin selector named writeByteArrayLnet/minecraft/network/PacketByteBuf;writeByteArray(Lio/netty/buffer/ByteBuf;[B)Vintermediary method_56894Lnet/minecraft/class_2540;method_56894(Lio/netty/buffer/ByteBuf;[B)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;[B)V
-
readByteArray
public byte[] readByteArray(int maxSize) Reads an array of primitive bytes from this buf. The array first has a var int indicating its length, followed by the actual bytes. The array has a length limit given 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 named readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray(I)[Bintermediary method_10803Lnet/minecraft/class_2540;method_10803(I)[Bofficial aLvw;a(I)[B
-
readByteArray
- Mappings:
Namespace Name Mixin selector named readByteArrayLnet/minecraft/network/PacketByteBuf;readByteArray(Lio/netty/buffer/ByteBuf;I)[Bintermediary method_56891Lnet/minecraft/class_2540;method_56891(Lio/netty/buffer/ByteBuf;I)[Bofficial aLvw;a(Lio/netty/buffer/ByteBuf;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 named writeIntArrayLnet/minecraft/network/PacketByteBuf;writeIntArray([I)Lnet/minecraft/network/PacketByteBuf;intermediary method_10806Lnet/minecraft/class_2540;method_10806([I)Lnet/minecraft/class_2540;official aLvw;a([I)Lvw;
-
readIntArray
public int[] readIntArray()Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array does not have a length limit.- Returns:
- the read byte array
- See Also:
- Implementation Note:
- An int array has the same format as a list of ints.
- Mappings:
Namespace Name Mixin selector named readIntArrayLnet/minecraft/network/PacketByteBuf;readIntArray()[Iintermediary method_10787Lnet/minecraft/class_2540;method_10787()[Iofficial cLvw;c()[I
-
readIntArray
public int[] readIntArray(int maxSize) Reads an array of primitive ints from this buf. The array first has a var int indicating its length, followed by the var int entries. The array has a length limit given 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 named readIntArrayLnet/minecraft/network/PacketByteBuf;readIntArray(I)[Iintermediary method_10799Lnet/minecraft/class_2540;method_10799(I)[Iofficial bLvw;b(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 named writeLongArrayLnet/minecraft/network/PacketByteBuf;writeLongArray([J)Lnet/minecraft/network/PacketByteBuf;intermediary method_10789Lnet/minecraft/class_2540;method_10789([J)Lnet/minecraft/class_2540;official aLvw;a([J)Lvw;
-
readLongArray
public long[] readLongArray()Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array does not have a length limit.- Returns:
- the read long array
- See Also:
- Mappings:
Namespace Name Mixin selector named readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray()[Jintermediary method_33134Lnet/minecraft/class_2540;method_33134()[Jofficial dLvw;d()[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 named readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray([J)[Jintermediary method_10801Lnet/minecraft/class_2540;method_10801([J)[Jofficial bLvw;b([J)[J
-
readLongArray
public long[] readLongArray(@Nullable @org.jetbrains.annotations.Nullable long[] toArray, int maxSize) Reads an array of primitive longs from this buf. The array first has a var int indicating its length, followed by the regular long (not var long) values. The array has a length limit 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 named readLongArrayLnet/minecraft/network/PacketByteBuf;readLongArray([JI)[Jintermediary method_10809Lnet/minecraft/class_2540;method_10809([JI)[Jofficial aLvw;a([JI)[J
-
readBlockPos
Reads a block position from this buf. A block position is represented by a regular long.- Returns:
- the read block pos
- See Also:
- Mappings:
Namespace Name Mixin selector named readBlockPosLnet/minecraft/network/PacketByteBuf;readBlockPos()Lnet/minecraft/util/math/BlockPos;intermediary method_10811Lnet/minecraft/class_2540;method_10811()Lnet/minecraft/class_2338;official eLvw;e()Ljd;
-
readBlockPos
- Mappings:
Namespace Name Mixin selector named readBlockPosLnet/minecraft/network/PacketByteBuf;readBlockPos(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/util/math/BlockPos;intermediary method_56335Lnet/minecraft/class_2540;method_56335(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2338;official bLvw;b(Lio/netty/buffer/ByteBuf;)Ljd;
-
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 named writeBlockPosLnet/minecraft/network/PacketByteBuf;writeBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10807Lnet/minecraft/class_2540;method_10807(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2540;official aLvw;a(Ljd;)Lvw;
-
writeBlockPos
- Mappings:
Namespace Name Mixin selector named writeBlockPosLnet/minecraft/network/PacketByteBuf;writeBlockPos(Lio/netty/buffer/ByteBuf;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_56336Lnet/minecraft/class_2540;method_56336(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2338;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Ljd;)V
-
readChunkPos
Reads a chunk position from this buf. A chunk position is represented by a regular long.- Returns:
- the read chunk position
- See Also:
- Mappings:
Namespace Name Mixin selector named readChunkPosLnet/minecraft/network/PacketByteBuf;readChunkPos()Lnet/minecraft/util/math/ChunkPos;intermediary method_36133Lnet/minecraft/class_2540;method_36133()Lnet/minecraft/class_1923;official fLvw;f()Ldcd;
-
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 named writeChunkPosLnet/minecraft/network/PacketByteBuf;writeChunkPos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/network/PacketByteBuf;intermediary method_36130Lnet/minecraft/class_2540;method_36130(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2540;official aLvw;a(Ldcd;)Lvw;
-
readChunkSectionPos
Reads a chunk section position from this buf. A chunk section position is represented by a regular long.- Returns:
- the read chunk section pos
- See Also:
- Mappings:
Namespace Name Mixin selector named readChunkSectionPosLnet/minecraft/network/PacketByteBuf;readChunkSectionPos()Lnet/minecraft/util/math/ChunkSectionPos;intermediary method_19456Lnet/minecraft/class_2540;method_19456()Lnet/minecraft/class_4076;official gLvw;g()Lkf;
-
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 named writeChunkSectionPosLnet/minecraft/network/PacketByteBuf;writeChunkSectionPos(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/network/PacketByteBuf;intermediary method_36131Lnet/minecraft/class_2540;method_36131(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2540;official aLvw;a(Lkf;)Lvw;
-
readGlobalPos
Reads a global position from this buf. A global position is represented by the registry key of the dimension followed by the block position.- Returns:
- the read global pos
- See Also:
- Mappings:
Namespace Name Mixin selector named readGlobalPosLnet/minecraft/network/PacketByteBuf;readGlobalPos()Lnet/minecraft/util/math/GlobalPos;intermediary method_44117Lnet/minecraft/class_2540;method_44117()Lnet/minecraft/class_4208;official hLvw;h()Ljl;
-
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 named writeGlobalPosLnet/minecraft/network/PacketByteBuf;writeGlobalPos(Lnet/minecraft/util/math/GlobalPos;)Vintermediary method_44113Lnet/minecraft/class_2540;method_44113(Lnet/minecraft/class_4208;)Vofficial aLvw;a(Ljl;)V
-
readVector3f
- See Also:
- Mappings:
Namespace Name Mixin selector named readVector3fLnet/minecraft/network/PacketByteBuf;readVector3f()Lorg/joml/Vector3f;intermediary method_49069Lnet/minecraft/class_2540;method_49069()Lorg/joml/Vector3f;official iLvw;i()Lorg/joml/Vector3f;
-
readVector3f
- Mappings:
Namespace Name Mixin selector named readVector3fLnet/minecraft/network/PacketByteBuf;readVector3f(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;intermediary method_56342Lnet/minecraft/class_2540;method_56342(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;official cLvw;c(Lio/netty/buffer/ByteBuf;)Lorg/joml/Vector3f;
-
writeVector3f
- See Also:
- Mappings:
Namespace Name Mixin selector named writeVector3fLnet/minecraft/network/PacketByteBuf;writeVector3f(Lorg/joml/Vector3f;)Vintermediary method_49068Lnet/minecraft/class_2540;method_49068(Lorg/joml/Vector3f;)Vofficial aLvw;a(Lorg/joml/Vector3f;)V
-
writeVector3f
- Mappings:
Namespace Name Mixin selector named writeVector3fLnet/minecraft/network/PacketByteBuf;writeVector3f(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)Vintermediary method_56339Lnet/minecraft/class_2540;method_56339(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Lorg/joml/Vector3f;)V
-
readQuaternionf
- See Also:
- Mappings:
Namespace Name Mixin selector named readQuaternionfLnet/minecraft/network/PacketByteBuf;readQuaternionf()Lorg/joml/Quaternionf;intermediary method_49070Lnet/minecraft/class_2540;method_49070()Lorg/joml/Quaternionf;official jLvw;j()Lorg/joml/Quaternionf;
-
readQuaternionf
- Mappings:
Namespace Name Mixin selector named readQuaternionfLnet/minecraft/network/PacketByteBuf;readQuaternionf(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;intermediary method_56343Lnet/minecraft/class_2540;method_56343(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;official dLvw;d(Lio/netty/buffer/ByteBuf;)Lorg/joml/Quaternionf;
-
writeQuaternionf
- See Also:
- Mappings:
Namespace Name Mixin selector named writeQuaternionfLnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lorg/joml/Quaternionf;)Vintermediary method_49067Lnet/minecraft/class_2540;method_49067(Lorg/joml/Quaternionf;)Vofficial aLvw;a(Lorg/joml/Quaternionf;)V
-
writeQuaternionf
- Mappings:
Namespace Name Mixin selector named writeQuaternionfLnet/minecraft/network/PacketByteBuf;writeQuaternionf(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)Vintermediary method_56338Lnet/minecraft/class_2540;method_56338(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Lorg/joml/Quaternionf;)V
-
readVec3d
- See Also:
- Mappings:
Namespace Name Mixin selector named readVec3dLnet/minecraft/network/PacketByteBuf;readVec3d()Lnet/minecraft/util/math/Vec3d;intermediary method_52996Lnet/minecraft/class_2540;method_52996()Lnet/minecraft/class_243;official kLvw;k()Lexc;
-
writeVec3d
- See Also:
- Mappings:
Namespace Name Mixin selector named writeVec3dLnet/minecraft/network/PacketByteBuf;writeVec3d(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_52955Lnet/minecraft/class_2540;method_52955(Lnet/minecraft/class_243;)Vofficial aLvw;a(Lexc;)V
-
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 named readEnumConstantLnet/minecraft/network/PacketByteBuf;readEnumConstant(Ljava/lang/Class;)Ljava/lang/Enum;intermediary method_10818Lnet/minecraft/class_2540;method_10818(Ljava/lang/Class;)Ljava/lang/Enum;official bLvw;b(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 named writeEnumConstantLnet/minecraft/network/PacketByteBuf;writeEnumConstant(Ljava/lang/Enum;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10817Lnet/minecraft/class_2540;method_10817(Ljava/lang/Enum;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/lang/Enum;)Lvw;
-
decode
Reads a var int representing an ID, then returns the value converted byidToValue.- Parameters:
idToValue- a function that gets the value from the integer ID- See Also:
- Mappings:
Namespace Name Mixin selector named decodeLnet/minecraft/network/PacketByteBuf;decode(Ljava/util/function/IntFunction;)Ljava/lang/Object;intermediary method_52962Lnet/minecraft/class_2540;method_52962(Ljava/util/function/IntFunction;)Ljava/lang/Object;official aLvw;a(Ljava/util/function/IntFunction;)Ljava/lang/Object;
-
encode
Convertsvalueto an integer representing its ID, then writes a var int representation of such ID.- Parameters:
valueToId- a function that gets the value's integer ID- See Also:
- Mappings:
Namespace Name Mixin selector named encodeLnet/minecraft/network/PacketByteBuf;encode(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52963Lnet/minecraft/class_2540;method_52963(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/util/function/ToIntFunction;Ljava/lang/Object;)Lvw;
-
readVarInt
public int readVarInt()Reads a single var int from this buf.- Returns:
- the value read
- See Also:
- Mappings:
Namespace Name Mixin selector named readVarIntLnet/minecraft/network/PacketByteBuf;readVarInt()Iintermediary method_10816Lnet/minecraft/class_2540;method_10816()Iofficial lLvw;l()I
-
readVarLong
public long readVarLong()Reads a single var long from this buf.- Returns:
- the value read
- See Also:
- Mappings:
Namespace Name Mixin selector named readVarLongLnet/minecraft/network/PacketByteBuf;readVarLong()Jintermediary method_10792Lnet/minecraft/class_2540;method_10792()Jofficial mLvw;m()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 named writeUuidLnet/minecraft/network/PacketByteBuf;writeUuid(Ljava/util/UUID;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10797Lnet/minecraft/class_2540;method_10797(Ljava/util/UUID;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/util/UUID;)Lvw;
-
writeUuid
- Mappings:
Namespace Name Mixin selector named writeUuidLnet/minecraft/network/PacketByteBuf;writeUuid(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)Vintermediary method_56337Lnet/minecraft/class_2540;method_56337(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Ljava/util/UUID;)V
-
readUuid
Reads a UUID (universally unique identifier) from this buf. A UUID is represented by two regular longs.- Returns:
- the read UUID
- See Also:
- Mappings:
Namespace Name Mixin selector named readUuidLnet/minecraft/network/PacketByteBuf;readUuid()Ljava/util/UUID;intermediary method_10790Lnet/minecraft/class_2540;method_10790()Ljava/util/UUID;official nLvw;n()Ljava/util/UUID;
-
readUuid
- Mappings:
Namespace Name Mixin selector named readUuidLnet/minecraft/network/PacketByteBuf;readUuid(Lio/netty/buffer/ByteBuf;)Ljava/util/UUID;intermediary method_56344Lnet/minecraft/class_2540;method_56344(Lio/netty/buffer/ByteBuf;)Ljava/util/UUID;official eLvw;e(Lio/netty/buffer/ByteBuf;)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 named writeVarIntLnet/minecraft/network/PacketByteBuf;writeVarInt(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_10804Lnet/minecraft/class_2540;method_10804(I)Lnet/minecraft/class_2540;official cLvw;c(I)Lvw;
-
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 named writeVarLongLnet/minecraft/network/PacketByteBuf;writeVarLong(J)Lnet/minecraft/network/PacketByteBuf;intermediary method_10791Lnet/minecraft/class_2540;method_10791(J)Lnet/minecraft/class_2540;official aLvw;a(J)Lvw;
-
writeNbt
Writes an NBT element to this buf. The binary representation of NBT is handled byNbtIo. Ifnbtisnull, it is treated as an NBT null.- Returns:
- this buf, for chaining
- Throws:
EncoderException- if the NBT cannot be written- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/network/PacketByteBuf;writeNbt(Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10794Lnet/minecraft/class_2540;method_10794(Lnet/minecraft/class_2520;)Lnet/minecraft/class_2540;official aLvw;a(Luy;)Lvw;
-
writeNbt
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/network/PacketByteBuf;writeNbt(Lio/netty/buffer/ByteBuf;Lnet/minecraft/nbt/NbtElement;)Vintermediary method_56341Lnet/minecraft/class_2540;method_56341(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2520;)Vofficial aLvw;a(Lio/netty/buffer/ByteBuf;Luy;)V
-
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.Note that unlike
readNbt(NbtSizeTracker), this can only read compounds.- Returns:
- the read compound, may be
null - Throws:
EncoderException- if the NBT cannot be readNbtSizeValidationException- if the compound exceeds the allowed maximum size- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/network/PacketByteBuf;readNbt()Lnet/minecraft/nbt/NbtCompound;intermediary method_10798Lnet/minecraft/class_2540;method_10798()Lnet/minecraft/class_2487;official oLvw;o()Lub;
-
readNbt
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/network/PacketByteBuf;readNbt(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/nbt/NbtCompound;intermediary method_56345Lnet/minecraft/class_2540;method_56345(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2487;official fLvw;f(Lio/netty/buffer/ByteBuf;)Lub;
-
readNbt
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/network/PacketByteBuf;readNbt(Lio/netty/buffer/ByteBuf;Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/NbtElement;intermediary method_56340Lnet/minecraft/class_2540;method_56340(Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;official aLvw;a(Lio/netty/buffer/ByteBuf;Luk;)Luy;
-
readNbt
Reads an NBT element from this buf. The binary representation of NBT is handled byNbtIo. If an NBT null is encountered, this method returnsnull. The element can have a maximum size controlled by thesizeTracker.- Returns:
- the read element, may be
null - Throws:
EncoderException- if the NBT cannot be readNbtSizeValidationException- if the element exceeds the allowed maximum size- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/network/PacketByteBuf;readNbt(Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/NbtElement;intermediary method_30616Lnet/minecraft/class_2540;method_30616(Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;official aLvw;a(Luk;)Luy;
-
readString
Reads a string from this buf. A string is represented by a byte array of its UTF-8 data. The string can have a maximum length of 32767.- Returns:
- the string read
- Throws:
DecoderException- if the string read exceeds the maximum length- See Also:
- Mappings:
Namespace Name Mixin selector named readStringLnet/minecraft/network/PacketByteBuf;readString()Ljava/lang/String;intermediary method_19772Lnet/minecraft/class_2540;method_19772()Ljava/lang/String;official pLvw;p()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 named readStringLnet/minecraft/network/PacketByteBuf;readString(I)Ljava/lang/String;intermediary method_10800Lnet/minecraft/class_2540;method_10800(I)Ljava/lang/String;official dLvw;d(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 named writeStringLnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10814Lnet/minecraft/class_2540;method_10814(Ljava/lang/String;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/lang/String;)Lvw;
-
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:
maxLength- the max length of the byte array- Returns:
- this buf, for chaining
- Throws:
EncoderException- if the byte array of the string to write is longer thanmaxLength- See Also:
- Mappings:
Namespace Name Mixin selector named writeStringLnet/minecraft/network/PacketByteBuf;writeString(Ljava/lang/String;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_10788Lnet/minecraft/class_2540;method_10788(Ljava/lang/String;I)Lnet/minecraft/class_2540;official aLvw;a(Ljava/lang/String;I)Lvw;
-
readIdentifier
Reads an identifier from this buf. An identifier is represented by its string form. The read identifier's string form can have a max length of 32767.- Returns:
- the read identifier
- Throws:
DecoderException- if the identifier's string form is longer than 32767- See Also:
- Mappings:
Namespace Name Mixin selector named readIdentifierLnet/minecraft/network/PacketByteBuf;readIdentifier()Lnet/minecraft/util/Identifier;intermediary method_10810Lnet/minecraft/class_2540;method_10810()Lnet/minecraft/class_2960;official qLvw;q()Lakr;
-
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 named writeIdentifierLnet/minecraft/network/PacketByteBuf;writeIdentifier(Lnet/minecraft/util/Identifier;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10812Lnet/minecraft/class_2540;method_10812(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2540;official aLvw;a(Lakr;)Lvw;
-
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 named readRegistryKeyLnet/minecraft/network/PacketByteBuf;readRegistryKey(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryKey;intermediary method_44112Lnet/minecraft/class_2540;method_44112(Lnet/minecraft/class_5321;)Lnet/minecraft/class_5321;official aLvw;a(Lakq;)Lakq;
-
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 named writeRegistryKeyLnet/minecraft/network/PacketByteBuf;writeRegistryKey(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_44116Lnet/minecraft/class_2540;method_44116(Lnet/minecraft/class_5321;)Vofficial bLvw;b(Lakq;)V
-
readRegistryRefKey
Reads a registry key referencing another registry key from this buf. Such key is represented by its value as an identifier.This is the same as
readRegistryKey(Registries.ROOT). To read a registry key of a registered object (such as biomes), usereadRegistryKey(RegistryKey).- Returns:
- the read registry key
- See Also:
- Mappings:
Namespace Name Mixin selector named readRegistryRefKeyLnet/minecraft/network/PacketByteBuf;readRegistryRefKey()Lnet/minecraft/registry/RegistryKey;intermediary method_53006Lnet/minecraft/class_2540;method_53006()Lnet/minecraft/class_5321;official rLvw;r()Lakq;
-
readDate
Reads a date from this buf. A date is represented by its time, a regular long.- Returns:
- the read date
- See Also:
- Mappings:
Namespace Name Mixin selector named readDateLnet/minecraft/network/PacketByteBuf;readDate()Ljava/util/Date;intermediary method_10802Lnet/minecraft/class_2540;method_10802()Ljava/util/Date;official sLvw;s()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 named writeDateLnet/minecraft/network/PacketByteBuf;writeDate(Ljava/util/Date;)Lnet/minecraft/network/PacketByteBuf;intermediary method_10796Lnet/minecraft/class_2540;method_10796(Ljava/util/Date;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/util/Date;)Lvw;
-
readInstant
Reads an instant from this buf. An instant is represented by the milliseconds since the epoch.- Returns:
- the read instant
- See Also:
- Mappings:
Namespace Name Mixin selector named readInstantLnet/minecraft/network/PacketByteBuf;readInstant()Ljava/time/Instant;intermediary method_44118Lnet/minecraft/class_2540;method_44118()Ljava/time/Instant;official tLvw;t()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 named writeInstantLnet/minecraft/network/PacketByteBuf;writeInstant(Ljava/time/Instant;)Vintermediary method_44115Lnet/minecraft/class_2540;method_44115(Ljava/time/Instant;)Vofficial aLvw;a(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 named readPublicKeyLnet/minecraft/network/PacketByteBuf;readPublicKey()Ljava/security/PublicKey;intermediary method_44119Lnet/minecraft/class_2540;method_44119()Ljava/security/PublicKey;official uLvw;u()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 named writePublicKeyLnet/minecraft/network/PacketByteBuf;writePublicKey(Ljava/security/PublicKey;)Lnet/minecraft/network/PacketByteBuf;intermediary method_44114Lnet/minecraft/class_2540;method_44114(Ljava/security/PublicKey;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/security/PublicKey;)Lvw;
-
readBlockHitResult
Reads a block hit result from this buf. A block hit result is represented by a block position, a direction enum constant, 3 floats for the hit offset position, and a boolean for whether the hit was inside a block.- Returns:
- the read block hit result
- See Also:
- Mappings:
Namespace Name Mixin selector named readBlockHitResultLnet/minecraft/network/PacketByteBuf;readBlockHitResult()Lnet/minecraft/util/hit/BlockHitResult;intermediary method_17814Lnet/minecraft/class_2540;method_17814()Lnet/minecraft/class_3965;official vLvw;v()Lewy;
-
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 named writeBlockHitResultLnet/minecraft/network/PacketByteBuf;writeBlockHitResult(Lnet/minecraft/util/hit/BlockHitResult;)Vintermediary method_17813Lnet/minecraft/class_2540;method_17813(Lnet/minecraft/class_3965;)Vofficial aLvw;a(Lewy;)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 named readBitSetLnet/minecraft/network/PacketByteBuf;readBitSet()Ljava/util/BitSet;intermediary method_33558Lnet/minecraft/class_2540;method_33558()Ljava/util/BitSet;official wLvw;w()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 named writeBitSetLnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;)Vintermediary method_33557Lnet/minecraft/class_2540;method_33557(Ljava/util/BitSet;)Vofficial aLvw;a(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 named readBitSetLnet/minecraft/network/PacketByteBuf;readBitSet(I)Ljava/util/BitSet;intermediary method_46254Lnet/minecraft/class_2540;method_46254(I)Ljava/util/BitSet;official eLvw;e(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 named writeBitSetLnet/minecraft/network/PacketByteBuf;writeBitSet(Ljava/util/BitSet;I)Vintermediary method_46252Lnet/minecraft/class_2540;method_46252(Ljava/util/BitSet;I)Vofficial aLvw;a(Ljava/util/BitSet;I)V
-
isContiguous
public boolean isContiguous()- Overrides:
isContiguousin classByteBuf
-
maxFastWritableBytes
public int maxFastWritableBytes()- Overrides:
maxFastWritableBytesin classByteBuf
-
capacity
public int capacity() -
capacity
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacityin classByteBuf
-
alloc
-
order
-
order
- Specified by:
orderin classByteBuf- Mappings:
Namespace Name Mixin selector named orderLnet/minecraft/network/PacketByteBuf;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;intermediary orderLnet/minecraft/class_2540;order(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf;official orderLvw;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 named readerIndexLnet/minecraft/network/PacketByteBuf;readerIndex(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52988Lnet/minecraft/class_2540;method_52988(I)Lnet/minecraft/class_2540;official gLvw;g(I)Lvw;
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classByteBuf
-
writerIndex
- Specified by:
writerIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named writerIndexLnet/minecraft/network/PacketByteBuf;writerIndex(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52990Lnet/minecraft/class_2540;method_52990(I)Lnet/minecraft/class_2540;official hLvw;h(I)Lvw;
-
setIndex
- Specified by:
setIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named setIndexLnet/minecraft/network/PacketByteBuf;setIndex(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52944Lnet/minecraft/class_2540;method_52944(II)Lnet/minecraft/class_2540;official aLvw;a(II)Lvw;
-
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 named isReadableLnet/minecraft/network/PacketByteBuf;isReadable(I)Zintermediary isReadableLnet/minecraft/class_2540;isReadable(I)Zofficial isReadableLvw;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 named isWritableLnet/minecraft/network/PacketByteBuf;isWritable(I)Zintermediary isWritableLnet/minecraft/class_2540;isWritable(I)Zofficial isWritableLvw;isWritable(I)Z
-
clear
-
markReaderIndex
- Specified by:
markReaderIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named markReaderIndexLnet/minecraft/network/PacketByteBuf;markReaderIndex()Lnet/minecraft/network/PacketByteBuf;intermediary method_52932Lnet/minecraft/class_2540;method_52932()Lnet/minecraft/class_2540;official yLvw;y()Lvw;
-
resetReaderIndex
- Specified by:
resetReaderIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named resetReaderIndexLnet/minecraft/network/PacketByteBuf;resetReaderIndex()Lnet/minecraft/network/PacketByteBuf;intermediary method_52933Lnet/minecraft/class_2540;method_52933()Lnet/minecraft/class_2540;official zLvw;z()Lvw;
-
markWriterIndex
- Specified by:
markWriterIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named markWriterIndexLnet/minecraft/network/PacketByteBuf;markWriterIndex()Lnet/minecraft/network/PacketByteBuf;intermediary method_52934Lnet/minecraft/class_2540;method_52934()Lnet/minecraft/class_2540;official ALvw;A()Lvw;
-
resetWriterIndex
- Specified by:
resetWriterIndexin classByteBuf- Mappings:
Namespace Name Mixin selector named resetWriterIndexLnet/minecraft/network/PacketByteBuf;resetWriterIndex()Lnet/minecraft/network/PacketByteBuf;intermediary method_52935Lnet/minecraft/class_2540;method_52935()Lnet/minecraft/class_2540;official BLvw;B()Lvw;
-
discardReadBytes
- Specified by:
discardReadBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named discardReadBytesLnet/minecraft/network/PacketByteBuf;discardReadBytes()Lnet/minecraft/network/PacketByteBuf;intermediary method_52936Lnet/minecraft/class_2540;method_52936()Lnet/minecraft/class_2540;official CLvw;C()Lvw;
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named discardSomeReadBytesLnet/minecraft/network/PacketByteBuf;discardSomeReadBytes()Lnet/minecraft/network/PacketByteBuf;intermediary method_52937Lnet/minecraft/class_2540;method_52937()Lnet/minecraft/class_2540;official DLvw;D()Lvw;
-
ensureWritable
- Specified by:
ensureWritablein classByteBuf- Mappings:
Namespace Name Mixin selector named ensureWritableLnet/minecraft/network/PacketByteBuf;ensureWritable(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52992Lnet/minecraft/class_2540;method_52992(I)Lnet/minecraft/class_2540;official iLvw;i(I)Lvw;
-
ensureWritable
public int ensureWritable(int minBytes, boolean force) - Specified by:
ensureWritablein classByteBuf- Mappings:
Namespace Name Mixin selector named ensureWritableLnet/minecraft/network/PacketByteBuf;ensureWritable(IZ)Iintermediary ensureWritableLnet/minecraft/class_2540;ensureWritable(IZ)Iofficial ensureWritableLvw;ensureWritable(IZ)I
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector named getBooleanLnet/minecraft/network/PacketByteBuf;getBoolean(I)Zintermediary getBooleanLnet/minecraft/class_2540;getBoolean(I)Zofficial getBooleanLvw;getBoolean(I)Z
-
getByte
public byte getByte(int index) -
getUnsignedByte
public short getUnsignedByte(int index) - Specified by:
getUnsignedBytein classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedByteLnet/minecraft/network/PacketByteBuf;getUnsignedByte(I)Sintermediary getUnsignedByteLnet/minecraft/class_2540;getUnsignedByte(I)Sofficial getUnsignedByteLvw;getUnsignedByte(I)S
-
getShort
public short getShort(int index) -
getShortLE
public short getShortLE(int index) - Specified by:
getShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector named getShortLELnet/minecraft/network/PacketByteBuf;getShortLE(I)Sintermediary getShortLELnet/minecraft/class_2540;getShortLE(I)Sofficial getShortLELvw;getShortLE(I)S
-
getUnsignedShort
public int getUnsignedShort(int index) - Specified by:
getUnsignedShortin classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedShortLnet/minecraft/network/PacketByteBuf;getUnsignedShort(I)Iintermediary getUnsignedShortLnet/minecraft/class_2540;getUnsignedShort(I)Iofficial getUnsignedShortLvw;getUnsignedShort(I)I
-
getUnsignedShortLE
public int getUnsignedShortLE(int index) - Specified by:
getUnsignedShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedShortLELnet/minecraft/network/PacketByteBuf;getUnsignedShortLE(I)Iintermediary getUnsignedShortLELnet/minecraft/class_2540;getUnsignedShortLE(I)Iofficial getUnsignedShortLELvw;getUnsignedShortLE(I)I
-
getMedium
public int getMedium(int index) -
getMediumLE
public int getMediumLE(int index) - Specified by:
getMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector named getMediumLELnet/minecraft/network/PacketByteBuf;getMediumLE(I)Iintermediary getMediumLELnet/minecraft/class_2540;getMediumLE(I)Iofficial getMediumLELvw;getMediumLE(I)I
-
getUnsignedMedium
public int getUnsignedMedium(int index) - Specified by:
getUnsignedMediumin classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedMediumLnet/minecraft/network/PacketByteBuf;getUnsignedMedium(I)Iintermediary getUnsignedMediumLnet/minecraft/class_2540;getUnsignedMedium(I)Iofficial getUnsignedMediumLvw;getUnsignedMedium(I)I
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int index) - Specified by:
getUnsignedMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedMediumLELnet/minecraft/network/PacketByteBuf;getUnsignedMediumLE(I)Iintermediary getUnsignedMediumLELnet/minecraft/class_2540;getUnsignedMediumLE(I)Iofficial getUnsignedMediumLELvw;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 named getUnsignedIntLnet/minecraft/network/PacketByteBuf;getUnsignedInt(I)Jintermediary getUnsignedIntLnet/minecraft/class_2540;getUnsignedInt(I)Jofficial getUnsignedIntLvw;getUnsignedInt(I)J
-
getUnsignedIntLE
public long getUnsignedIntLE(int index) - Specified by:
getUnsignedIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector named getUnsignedIntLELnet/minecraft/network/PacketByteBuf;getUnsignedIntLE(I)Jintermediary getUnsignedIntLELnet/minecraft/class_2540;getUnsignedIntLE(I)Jofficial getUnsignedIntLELvw;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 named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52946Lnet/minecraft/class_2540;method_52946(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;official aLvw;a(ILio/netty/buffer/ByteBuf;)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52947Lnet/minecraft/class_2540;method_52947(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;official aLvw;a(ILio/netty/buffer/ByteBuf;I)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52948Lnet/minecraft/class_2540;method_52948(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;official aLvw;a(ILio/netty/buffer/ByteBuf;II)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(I[B)Lnet/minecraft/network/PacketByteBuf;intermediary method_52952Lnet/minecraft/class_2540;method_52952(I[B)Lnet/minecraft/class_2540;official aLvw;a(I[B)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(I[BII)Lnet/minecraft/network/PacketByteBuf;intermediary method_52953Lnet/minecraft/class_2540;method_52953(I[BII)Lnet/minecraft/class_2540;official aLvw;a(I[BII)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52950Lnet/minecraft/class_2540;method_52950(ILjava/nio/ByteBuffer;)Lnet/minecraft/class_2540;official aLvw;a(ILjava/nio/ByteBuffer;)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/io/OutputStream;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52949Lnet/minecraft/class_2540;method_52949(ILjava/io/OutputStream;I)Lnet/minecraft/class_2540;official aLvw;a(ILjava/io/OutputStream;I)Lvw;
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/GatheringByteChannel;I)Iintermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/nio/channels/GatheringByteChannel;I)Iofficial getBytesLvw;getBytes(ILjava/nio/channels/GatheringByteChannel;I)I
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getBytesLnet/minecraft/network/PacketByteBuf;getBytes(ILjava/nio/channels/FileChannel;JI)Iintermediary getBytesLnet/minecraft/class_2540;getBytes(ILjava/nio/channels/FileChannel;JI)Iofficial getBytesLvw;getBytes(ILjava/nio/channels/FileChannel;JI)I
-
getCharSequence
- Specified by:
getCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector named getCharSequenceLnet/minecraft/network/PacketByteBuf;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;intermediary getCharSequenceLnet/minecraft/class_2540;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;official getCharSequenceLvw;getCharSequence(IILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
-
setBoolean
- Specified by:
setBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector named setBooleanLnet/minecraft/network/PacketByteBuf;setBoolean(IZ)Lnet/minecraft/network/PacketByteBuf;intermediary method_52951Lnet/minecraft/class_2540;method_52951(IZ)Lnet/minecraft/class_2540;official aLvw;a(IZ)Lvw;
-
setByte
-
setShort
- Specified by:
setShortin classByteBuf- Mappings:
Namespace Name Mixin selector named setShortLnet/minecraft/network/PacketByteBuf;setShort(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52981Lnet/minecraft/class_2540;method_52981(II)Lnet/minecraft/class_2540;official cLvw;c(II)Lvw;
-
setShortLE
- Specified by:
setShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector named setShortLELnet/minecraft/network/PacketByteBuf;setShortLE(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52984Lnet/minecraft/class_2540;method_52984(II)Lnet/minecraft/class_2540;official dLvw;d(II)Lvw;
-
setMedium
- Specified by:
setMediumin classByteBuf- Mappings:
Namespace Name Mixin selector named setMediumLnet/minecraft/network/PacketByteBuf;setMedium(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52985Lnet/minecraft/class_2540;method_52985(II)Lnet/minecraft/class_2540;official eLvw;e(II)Lvw;
-
setMediumLE
- Specified by:
setMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector named setMediumLELnet/minecraft/network/PacketByteBuf;setMediumLE(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52987Lnet/minecraft/class_2540;method_52987(II)Lnet/minecraft/class_2540;official fLvw;f(II)Lvw;
-
setInt
-
setIntLE
- Specified by:
setIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector named setIntLELnet/minecraft/network/PacketByteBuf;setIntLE(II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52991Lnet/minecraft/class_2540;method_52991(II)Lnet/minecraft/class_2540;official hLvw;h(II)Lvw;
-
setLong
-
setLongLE
- Specified by:
setLongLEin classByteBuf- Mappings:
Namespace Name Mixin selector named setLongLELnet/minecraft/network/PacketByteBuf;setLongLE(IJ)Lnet/minecraft/network/PacketByteBuf;intermediary method_52967Lnet/minecraft/class_2540;method_52967(IJ)Lnet/minecraft/class_2540;official bLvw;b(IJ)Lvw;
-
setChar
-
setFloat
- Specified by:
setFloatin classByteBuf- Mappings:
Namespace Name Mixin selector named setFloatLnet/minecraft/network/PacketByteBuf;setFloat(IF)Lnet/minecraft/network/PacketByteBuf;intermediary method_52943Lnet/minecraft/class_2540;method_52943(IF)Lnet/minecraft/class_2540;official aLvw;a(IF)Lvw;
-
setDouble
- Specified by:
setDoublein classByteBuf- Mappings:
Namespace Name Mixin selector named setDoubleLnet/minecraft/network/PacketByteBuf;setDouble(ID)Lnet/minecraft/network/PacketByteBuf;intermediary method_52942Lnet/minecraft/class_2540;method_52942(ID)Lnet/minecraft/class_2540;official aLvw;a(ID)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52968Lnet/minecraft/class_2540;method_52968(ILio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;official bLvw;b(ILio/netty/buffer/ByteBuf;)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52969Lnet/minecraft/class_2540;method_52969(ILio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;official bLvw;b(ILio/netty/buffer/ByteBuf;I)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52970Lnet/minecraft/class_2540;method_52970(ILio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;official bLvw;b(ILio/netty/buffer/ByteBuf;II)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(I[B)Lnet/minecraft/network/PacketByteBuf;intermediary method_52972Lnet/minecraft/class_2540;method_52972(I[B)Lnet/minecraft/class_2540;official bLvw;b(I[B)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(I[BII)Lnet/minecraft/network/PacketByteBuf;intermediary method_52973Lnet/minecraft/class_2540;method_52973(I[BII)Lnet/minecraft/class_2540;official bLvw;b(I[BII)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52971Lnet/minecraft/class_2540;method_52971(ILjava/nio/ByteBuffer;)Lnet/minecraft/class_2540;official bLvw;b(ILjava/nio/ByteBuffer;)Lvw;
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/io/InputStream;I)Iintermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/io/InputStream;I)Iofficial setBytesLvw;setBytes(ILjava/io/InputStream;I)I
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)Iintermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)Iofficial setBytesLvw;setBytes(ILjava/nio/channels/ScatteringByteChannel;I)I
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named setBytesLnet/minecraft/network/PacketByteBuf;setBytes(ILjava/nio/channels/FileChannel;JI)Iintermediary setBytesLnet/minecraft/class_2540;setBytes(ILjava/nio/channels/FileChannel;JI)Iofficial setBytesLvw;setBytes(ILjava/nio/channels/FileChannel;JI)I
-
setZero
-
setCharSequence
- Specified by:
setCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector named setCharSequenceLnet/minecraft/network/PacketByteBuf;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)Iintermediary setCharSequenceLnet/minecraft/class_2540;setCharSequence(ILjava/lang/CharSequence;Ljava/nio/charset/Charset;)Iofficial setCharSequenceLvw;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 named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(I)Lio/netty/buffer/ByteBuf;intermediary readBytesLnet/minecraft/class_2540;readBytes(I)Lio/netty/buffer/ByteBuf;official readBytesLvw;readBytes(I)Lio/netty/buffer/ByteBuf;
-
readSlice
- Specified by:
readSlicein classByteBuf- Mappings:
Namespace Name Mixin selector named readSliceLnet/minecraft/network/PacketByteBuf;readSlice(I)Lio/netty/buffer/ByteBuf;intermediary readSliceLnet/minecraft/class_2540;readSlice(I)Lio/netty/buffer/ByteBuf;official readSliceLvw;readSlice(I)Lio/netty/buffer/ByteBuf;
-
readRetainedSlice
- Specified by:
readRetainedSlicein classByteBuf- Mappings:
Namespace Name Mixin selector named readRetainedSliceLnet/minecraft/network/PacketByteBuf;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;intermediary readRetainedSliceLnet/minecraft/class_2540;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;official readRetainedSliceLvw;readRetainedSlice(I)Lio/netty/buffer/ByteBuf;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52956Lnet/minecraft/class_2540;method_52956(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;official gLvw;g(Lio/netty/buffer/ByteBuf;)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52957Lnet/minecraft/class_2540;method_52957(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;official bLvw;b(Lio/netty/buffer/ByteBuf;I)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52958Lnet/minecraft/class_2540;method_52958(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;official aLvw;a(Lio/netty/buffer/ByteBuf;II)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes([B)Lnet/minecraft/network/PacketByteBuf;intermediary method_52979Lnet/minecraft/class_2540;method_52979([B)Lnet/minecraft/class_2540;official bLvw;b([B)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes([BII)Lnet/minecraft/network/PacketByteBuf;intermediary method_52965Lnet/minecraft/class_2540;method_52965([BII)Lnet/minecraft/class_2540;official aLvw;a([BII)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52961Lnet/minecraft/class_2540;method_52961(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/nio/ByteBuffer;)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/io/OutputStream;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52959Lnet/minecraft/class_2540;method_52959(Ljava/io/OutputStream;I)Lnet/minecraft/class_2540;official aLvw;a(Ljava/io/OutputStream;I)Lvw;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/GatheringByteChannel;I)Iintermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/nio/channels/GatheringByteChannel;I)Iofficial readBytesLvw;readBytes(Ljava/nio/channels/GatheringByteChannel;I)I
-
readCharSequence
- Specified by:
readCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector named readCharSequenceLnet/minecraft/network/PacketByteBuf;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;intermediary readCharSequenceLnet/minecraft/class_2540;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;official readCharSequenceLvw;readCharSequence(ILjava/nio/charset/Charset;)Ljava/lang/CharSequence;
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named readBytesLnet/minecraft/network/PacketByteBuf;readBytes(Ljava/nio/channels/FileChannel;JI)Iintermediary readBytesLnet/minecraft/class_2540;readBytes(Ljava/nio/channels/FileChannel;JI)Iofficial readBytesLvw;readBytes(Ljava/nio/channels/FileChannel;JI)I
-
skipBytes
- Specified by:
skipBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named skipBytesLnet/minecraft/network/PacketByteBuf;skipBytes(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52994Lnet/minecraft/class_2540;method_52994(I)Lnet/minecraft/class_2540;official jLvw;j(I)Lvw;
-
writeBoolean
- Specified by:
writeBooleanin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBooleanLnet/minecraft/network/PacketByteBuf;writeBoolean(Z)Lnet/minecraft/network/PacketByteBuf;intermediary method_52964Lnet/minecraft/class_2540;method_52964(Z)Lnet/minecraft/class_2540;official aLvw;a(Z)Lvw;
-
writeByte
- Specified by:
writeBytein classByteBuf- Mappings:
Namespace Name Mixin selector named writeByteLnet/minecraft/network/PacketByteBuf;writeByte(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52997Lnet/minecraft/class_2540;method_52997(I)Lnet/minecraft/class_2540;official kLvw;k(I)Lvw;
-
writeShort
- Specified by:
writeShortin classByteBuf- Mappings:
Namespace Name Mixin selector named writeShortLnet/minecraft/network/PacketByteBuf;writeShort(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52998Lnet/minecraft/class_2540;method_52998(I)Lnet/minecraft/class_2540;official lLvw;l(I)Lvw;
-
writeShortLE
- Specified by:
writeShortLEin classByteBuf- Mappings:
Namespace Name Mixin selector named writeShortLELnet/minecraft/network/PacketByteBuf;writeShortLE(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52999Lnet/minecraft/class_2540;method_52999(I)Lnet/minecraft/class_2540;official mLvw;m(I)Lvw;
-
writeMedium
- Specified by:
writeMediumin classByteBuf- Mappings:
Namespace Name Mixin selector named writeMediumLnet/minecraft/network/PacketByteBuf;writeMedium(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53000Lnet/minecraft/class_2540;method_53000(I)Lnet/minecraft/class_2540;official nLvw;n(I)Lvw;
-
writeMediumLE
- Specified by:
writeMediumLEin classByteBuf- Mappings:
Namespace Name Mixin selector named writeMediumLELnet/minecraft/network/PacketByteBuf;writeMediumLE(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53001Lnet/minecraft/class_2540;method_53001(I)Lnet/minecraft/class_2540;official oLvw;o(I)Lvw;
-
writeInt
-
writeIntLE
- Specified by:
writeIntLEin classByteBuf- Mappings:
Namespace Name Mixin selector named writeIntLELnet/minecraft/network/PacketByteBuf;writeIntLE(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53003Lnet/minecraft/class_2540;method_53003(I)Lnet/minecraft/class_2540;official qLvw;q(I)Lvw;
-
writeLong
- Specified by:
writeLongin classByteBuf- Mappings:
Namespace Name Mixin selector named writeLongLnet/minecraft/network/PacketByteBuf;writeLong(J)Lnet/minecraft/network/PacketByteBuf;intermediary method_52974Lnet/minecraft/class_2540;method_52974(J)Lnet/minecraft/class_2540;official bLvw;b(J)Lvw;
-
writeLongLE
- Specified by:
writeLongLEin classByteBuf- Mappings:
Namespace Name Mixin selector named writeLongLELnet/minecraft/network/PacketByteBuf;writeLongLE(J)Lnet/minecraft/network/PacketByteBuf;intermediary method_52982Lnet/minecraft/class_2540;method_52982(J)Lnet/minecraft/class_2540;official cLvw;c(J)Lvw;
-
writeChar
- Specified by:
writeCharin classByteBuf- Mappings:
Namespace Name Mixin selector named writeCharLnet/minecraft/network/PacketByteBuf;writeChar(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53004Lnet/minecraft/class_2540;method_53004(I)Lnet/minecraft/class_2540;official rLvw;r(I)Lvw;
-
writeFloat
- Specified by:
writeFloatin classByteBuf- Mappings:
Namespace Name Mixin selector named writeFloatLnet/minecraft/network/PacketByteBuf;writeFloat(F)Lnet/minecraft/network/PacketByteBuf;intermediary method_52941Lnet/minecraft/class_2540;method_52941(F)Lnet/minecraft/class_2540;official aLvw;a(F)Lvw;
-
writeDouble
- Specified by:
writeDoublein classByteBuf- Mappings:
Namespace Name Mixin selector named writeDoubleLnet/minecraft/network/PacketByteBuf;writeDouble(D)Lnet/minecraft/network/PacketByteBuf;intermediary method_52940Lnet/minecraft/class_2540;method_52940(D)Lnet/minecraft/class_2540;official aLvw;a(D)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52975Lnet/minecraft/class_2540;method_52975(Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_2540;official hLvw;h(Lio/netty/buffer/ByteBuf;)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/network/PacketByteBuf;intermediary method_52976Lnet/minecraft/class_2540;method_52976(Lio/netty/buffer/ByteBuf;I)Lnet/minecraft/class_2540;official cLvw;c(Lio/netty/buffer/ByteBuf;I)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/network/PacketByteBuf;intermediary method_52977Lnet/minecraft/class_2540;method_52977(Lio/netty/buffer/ByteBuf;II)Lnet/minecraft/class_2540;official bLvw;b(Lio/netty/buffer/ByteBuf;II)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes([B)Lnet/minecraft/network/PacketByteBuf;intermediary method_52983Lnet/minecraft/class_2540;method_52983([B)Lnet/minecraft/class_2540;official cLvw;c([B)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes([BII)Lnet/minecraft/network/PacketByteBuf;intermediary method_52980Lnet/minecraft/class_2540;method_52980([BII)Lnet/minecraft/class_2540;official bLvw;b([BII)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/ByteBuffer;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52978Lnet/minecraft/class_2540;method_52978(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2540;official bLvw;b(Ljava/nio/ByteBuffer;)Lvw;
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/io/InputStream;I)Iintermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/io/InputStream;I)Iofficial writeBytesLvw;writeBytes(Ljava/io/InputStream;I)I
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)Iintermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)Iofficial writeBytesLvw;writeBytes(Ljava/nio/channels/ScatteringByteChannel;I)I
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeBytesLnet/minecraft/network/PacketByteBuf;writeBytes(Ljava/nio/channels/FileChannel;JI)Iintermediary writeBytesLnet/minecraft/class_2540;writeBytes(Ljava/nio/channels/FileChannel;JI)Iofficial writeBytesLvw;writeBytes(Ljava/nio/channels/FileChannel;JI)I
-
writeZero
- Specified by:
writeZeroin classByteBuf- Mappings:
Namespace Name Mixin selector named writeZeroLnet/minecraft/network/PacketByteBuf;writeZero(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53005Lnet/minecraft/class_2540;method_53005(I)Lnet/minecraft/class_2540;official sLvw;s(I)Lvw;
-
writeCharSequence
- Specified by:
writeCharSequencein classByteBuf- Mappings:
Namespace Name Mixin selector named writeCharSequenceLnet/minecraft/network/PacketByteBuf;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Iintermediary writeCharSequenceLnet/minecraft/class_2540;writeCharSequence(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Iofficial writeCharSequenceLvw;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 named bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(B)Iintermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(B)Iofficial bytesBeforeLvw;bytesBefore(B)I
-
bytesBefore
public int bytesBefore(int length, byte value) - Specified by:
bytesBeforein classByteBuf- Mappings:
Namespace Name Mixin selector named bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(IB)Iintermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(IB)Iofficial bytesBeforeLvw;bytesBefore(IB)I
-
bytesBefore
public int bytesBefore(int index, int length, byte value) - Specified by:
bytesBeforein classByteBuf- Mappings:
Namespace Name Mixin selector named bytesBeforeLnet/minecraft/network/PacketByteBuf;bytesBefore(IIB)Iintermediary bytesBeforeLnet/minecraft/class_2540;bytesBefore(IIB)Iofficial bytesBeforeLvw;bytesBefore(IIB)I
-
forEachByte
- Specified by:
forEachBytein classByteBuf- Mappings:
Namespace Name Mixin selector named forEachByteLnet/minecraft/network/PacketByteBuf;forEachByte(Lio/netty/util/ByteProcessor;)Iintermediary forEachByteLnet/minecraft/class_2540;forEachByte(Lio/netty/util/ByteProcessor;)Iofficial forEachByteLvw;forEachByte(Lio/netty/util/ByteProcessor;)I
-
forEachByte
- Specified by:
forEachBytein classByteBuf- Mappings:
Namespace Name Mixin selector named forEachByteLnet/minecraft/network/PacketByteBuf;forEachByte(IILio/netty/util/ByteProcessor;)Iintermediary forEachByteLnet/minecraft/class_2540;forEachByte(IILio/netty/util/ByteProcessor;)Iofficial forEachByteLvw;forEachByte(IILio/netty/util/ByteProcessor;)I
-
forEachByteDesc
- Specified by:
forEachByteDescin classByteBuf- Mappings:
Namespace Name Mixin selector named forEachByteDescLnet/minecraft/network/PacketByteBuf;forEachByteDesc(Lio/netty/util/ByteProcessor;)Iintermediary forEachByteDescLnet/minecraft/class_2540;forEachByteDesc(Lio/netty/util/ByteProcessor;)Iofficial forEachByteDescLvw;forEachByteDesc(Lio/netty/util/ByteProcessor;)I
-
forEachByteDesc
- Specified by:
forEachByteDescin classByteBuf- Mappings:
Namespace Name Mixin selector named forEachByteDescLnet/minecraft/network/PacketByteBuf;forEachByteDesc(IILio/netty/util/ByteProcessor;)Iintermediary forEachByteDescLnet/minecraft/class_2540;forEachByteDesc(IILio/netty/util/ByteProcessor;)Iofficial forEachByteDescLvw;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 named retainedSliceLnet/minecraft/network/PacketByteBuf;retainedSlice(II)Lio/netty/buffer/ByteBuf;intermediary retainedSliceLnet/minecraft/class_2540;retainedSlice(II)Lio/netty/buffer/ByteBuf;official retainedSliceLvw;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 named nioBufferLnet/minecraft/network/PacketByteBuf;nioBuffer(II)Ljava/nio/ByteBuffer;intermediary nioBufferLnet/minecraft/class_2540;nioBuffer(II)Ljava/nio/ByteBuffer;official nioBufferLvw;nioBuffer(II)Ljava/nio/ByteBuffer;
-
internalNioBuffer
- Specified by:
internalNioBufferin classByteBuf- Mappings:
Namespace Name Mixin selector named internalNioBufferLnet/minecraft/network/PacketByteBuf;internalNioBuffer(II)Ljava/nio/ByteBuffer;intermediary internalNioBufferLnet/minecraft/class_2540;internalNioBuffer(II)Ljava/nio/ByteBuffer;official internalNioBufferLvw;internalNioBuffer(II)Ljava/nio/ByteBuffer;
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf- Mappings:
Namespace Name Mixin selector named nioBuffersLnet/minecraft/network/PacketByteBuf;nioBuffers(II)[Ljava/nio/ByteBuffer;intermediary nioBuffersLnet/minecraft/class_2540;nioBuffers(II)[Ljava/nio/ByteBuffer;official nioBuffersLvw;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 named toStringLnet/minecraft/network/PacketByteBuf;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;intermediary toStringLnet/minecraft/class_2540;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;official toStringLvw;toString(Ljava/nio/charset/Charset;)Ljava/lang/String;
-
toString
- Specified by:
toStringin classByteBuf- Mappings:
Namespace Name Mixin selector named toStringLnet/minecraft/network/PacketByteBuf;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;intermediary toStringLnet/minecraft/class_2540;toString(IILjava/nio/charset/Charset;)Ljava/lang/String;official toStringLvw;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 named compareToLnet/minecraft/network/PacketByteBuf;compareTo(Lio/netty/buffer/ByteBuf;)Iintermediary compareToLnet/minecraft/class_2540;compareTo(Lio/netty/buffer/ByteBuf;)Iofficial compareToLvw;compareTo(Lio/netty/buffer/ByteBuf;)I
-
toString
-
retain
- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin classByteBuf- Mappings:
Namespace Name Mixin selector named retainLnet/minecraft/network/PacketByteBuf;retain(I)Lnet/minecraft/network/PacketByteBuf;intermediary method_53007Lnet/minecraft/class_2540;method_53007(I)Lnet/minecraft/class_2540;official tLvw;t(I)Lvw;
-
retain
- Specified by:
retainin interfaceReferenceCounted- Specified by:
retainin classByteBuf- Mappings:
Namespace Name Mixin selector named retainLnet/minecraft/network/PacketByteBuf;retain()Lnet/minecraft/network/PacketByteBuf;intermediary method_52938Lnet/minecraft/class_2540;method_52938()Lnet/minecraft/class_2540;official ELvw;E()Lvw;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin classByteBuf- Mappings:
Namespace Name Mixin selector named touchLnet/minecraft/network/PacketByteBuf;touch()Lnet/minecraft/network/PacketByteBuf;intermediary method_52939Lnet/minecraft/class_2540;method_52939()Lnet/minecraft/class_2540;official FLvw;F()Lvw;
-
touch
- Specified by:
touchin interfaceReferenceCounted- Specified by:
touchin classByteBuf- Mappings:
Namespace Name Mixin selector named touchLnet/minecraft/network/PacketByteBuf;touch(Ljava/lang/Object;)Lnet/minecraft/network/PacketByteBuf;intermediary method_52960Lnet/minecraft/class_2540;method_52960(Ljava/lang/Object;)Lnet/minecraft/class_2540;official aLvw;a(Ljava/lang/Object;)Lvw;
-
refCnt
public int refCnt() -
release
public boolean release() -
release
public boolean release(int decrement) - Mappings:
Namespace Name Mixin selector named releaseLnet/minecraft/network/PacketByteBuf;release(I)Zintermediary releaseLnet/minecraft/class_2540;release(I)Zofficial releaseLvw;release(I)Z
-