Package net.minecraft.network
Class FriendlyByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
net.minecraft.network.FriendlyByteBuf
- All Implemented Interfaces:
io.netty.buffer.ByteBufConvertible,io.netty.util.ReferenceCounted,Comparable<io.netty.buffer.ByteBuf>,IFriendlyByteBufExtension
- Direct Known Subclasses:
RegistryFriendlyByteBuf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final com.google.gson.Gsonstatic final intprivate static final intprivate static final intstatic final shortprivate static final intprivate final io.netty.buffer.ByteBuf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufAllocatoralloc()byte[]array()intio.netty.buffer.ByteBufintbytesBefore(byte p_130108_) intbytesBefore(int p_130110_, byte p_130111_) intbytesBefore(int p_130113_, int p_130114_, byte p_130115_) intcapacity()capacity(int p_295325_) clear()intcompareTo(io.netty.buffer.ByteBuf p_130123_) io.netty.buffer.ByteBufcopy()io.netty.buffer.ByteBufcopy(int p_130128_, int p_130129_) io.netty.buffer.ByteBufensureWritable(int p_294903_) intensureWritable(int p_130141_, boolean p_130142_) booleanintforEachByte(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) intforEachByte(io.netty.util.ByteProcessor p_130150_) intforEachByteDesc(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) intforEachByteDesc(io.netty.util.ByteProcessor p_130156_) booleangetBoolean(int p_130159_) bytegetByte(int p_130161_) getBytes(int p_294557_, byte[] p_295660_) getBytes(int p_295128_, byte[] p_296337_, int p_294659_, int p_294779_) getBytes(int p_296115_, io.netty.buffer.ByteBuf p_295805_) getBytes(int p_294876_, io.netty.buffer.ByteBuf p_295864_, int p_294524_) getBytes(int p_294107_, io.netty.buffer.ByteBuf p_296448_, int p_295017_, int p_294733_) getBytes(int p_294277_, OutputStream p_296069_, int p_296395_) getBytes(int p_296377_, ByteBuffer p_295139_) intgetBytes(int p_130182_, FileChannel p_130183_, long p_130184_, int p_130185_) intgetBytes(int p_130187_, GatheringByteChannel p_130188_, int p_130189_) chargetChar(int p_130199_) getCharSequence(int p_130201_, int p_130202_, Charset p_130203_) doublegetDouble(int p_130205_) floatgetFloat(int p_130207_) intgetInt(int p_130209_) intgetIntLE(int p_130211_) longgetLong(int p_130213_) longgetLongLE(int p_130215_) intgetMedium(int p_130217_) intgetMediumLE(int p_130219_) shortgetShort(int p_130221_) shortgetShortLE(int p_130223_) io.netty.buffer.ByteBufshortgetUnsignedByte(int p_130225_) longgetUnsignedInt(int p_130227_) longgetUnsignedIntLE(int p_130229_) intgetUnsignedMedium(int p_130231_) intgetUnsignedMediumLE(int p_130233_) intgetUnsignedShort(int p_130235_) intgetUnsignedShortLE(int p_130237_) booleanhasArray()inthashCode()booleanintindexOf(int p_130244_, int p_130245_, byte p_130246_) internalNioBuffer(int p_130248_, int p_130249_) booleanbooleanisDirect()booleanbooleanisReadable(int p_130254_) booleanbooleanbooleanisWritable(int p_130257_) static <T> IntFunction<T> limitValue(IntFunction<T> p_182696_, int p_182697_) intintintlongnioBuffer(int p_130270_, int p_130271_) intnioBuffers(int p_130275_, int p_130276_) order()io.netty.buffer.ByteBufintstatic BlockPosreadBlockPos(io.netty.buffer.ByteBuf p_320037_) boolean<T> TreadById(IntFunction<T> p_295187_) bytereadByte()byte[]byte[]readByteArray(int p_130102_) static byte[]readByteArray(io.netty.buffer.ByteBuf p_324567_) static byte[]readByteArray(io.netty.buffer.ByteBuf p_323774_, int p_324044_) readBytes(byte[] p_295557_) readBytes(byte[] p_294152_, int p_294331_, int p_295481_) io.netty.buffer.ByteBufreadBytes(int p_130287_) readBytes(io.netty.buffer.ByteBuf p_296080_) readBytes(io.netty.buffer.ByteBuf p_296068_, int p_295259_) readBytes(io.netty.buffer.ByteBuf p_295701_, int p_294970_, int p_294610_) readBytes(OutputStream p_296425_, int p_295786_) readBytes(ByteBuffer p_294641_) intreadBytes(FileChannel p_130303_, long p_130304_, int p_130305_) intreadBytes(GatheringByteChannel p_130307_, int p_130308_) charreadChar()readCharSequence(int p_130317_, Charset p_130318_) <T,C extends Collection<T>>
CreadCollection(IntFunction<C> p_236839_, StreamDecoder<? super FriendlyByteBuf, T> p_320606_) readDate()double<T extends Enum<T>>
TreadEnumSet(Class<E> p_251289_) intreaderIndex(int p_295519_) readFixedBitSet(int p_249113_) floatintreadInt()it.unimi.dsi.fastutil.ints.IntListint<T> TreadJsonWithCodec(com.mojang.serialization.Codec<T> p_273318_) <T> List<T> readList(StreamDecoder<? super FriendlyByteBuf, T> p_320744_) longreadLong()long[]long[]readLongArray(long[] p_130106_) long[]readLongArray(long[] p_130094_, int p_130095_) long<K,V, M extends Map<K, V>>
MreadMap(IntFunction<M> p_236842_, StreamDecoder<? super FriendlyByteBuf, K> p_320803_, StreamDecoder<? super FriendlyByteBuf, V> p_320748_) <K,V> Map <K, V> readMap(StreamDecoder<? super FriendlyByteBuf, K> p_319851_, StreamDecoder<? super FriendlyByteBuf, V> p_320732_) intintreadNbt()static CompoundTagreadNbt(io.netty.buffer.ByteBuf p_320394_) static TagreadNbt(io.netty.buffer.ByteBuf p_320170_, NbtAccounter p_320055_) readNbt(NbtAccounter p_130082_) static <T,B extends io.netty.buffer.ByteBuf>
TreadNullable(B p_324437_, StreamDecoder<? super B, T> p_324453_) <T> TreadNullable(StreamDecoder<? super FriendlyByteBuf, T> p_320095_) <T> Optional<T> readOptional(StreamDecoder<? super FriendlyByteBuf, T> p_320700_) org.joml.Quaternionfstatic org.joml.QuaternionfreadQuaternion(io.netty.buffer.ByteBuf p_319961_) <T> ResourceKey<? extends Registry<T>> <T> ResourceKey<T> readResourceKey(ResourceKey<? extends Registry<T>> p_236802_) io.netty.buffer.ByteBufreadRetainedSlice(int p_130328_) shortshortio.netty.buffer.ByteBufreadSlice(int p_130332_) shortlonglongintintintintreadUtf()readUtf(int p_130137_) readUUID()static UUIDreadUUID(io.netty.buffer.ByteBuf p_319877_) intint[]int[]readVarIntArray(int p_130117_) longreadVec3()org.joml.Vector3fstatic org.joml.Vector3freadVector3f(io.netty.buffer.ByteBuf p_320362_) <T> TreadWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266903_, com.mojang.serialization.Codec<T> p_267107_, NbtAccounter p_295027_) Deprecated.<T> TreadWithCodecTrusted(com.mojang.serialization.DynamicOps<Tag> p_295347_, com.mojang.serialization.Codec<T> p_296304_) Deprecated.voidreadWithCount(Consumer<FriendlyByteBuf> p_178365_) intrefCnt()booleanrelease()booleanrelease(int p_130347_) retain()retain(int p_294685_) io.netty.buffer.ByteBufio.netty.buffer.ByteBufio.netty.buffer.ByteBufretainedSlice(int p_130359_, int p_130360_) setBoolean(int p_295254_, boolean p_295072_) setByte(int p_294776_, int p_295119_) setBytes(int p_295696_, byte[] p_295990_) setBytes(int p_295030_, byte[] p_295276_, int p_295073_, int p_295926_) setBytes(int p_294134_, io.netty.buffer.ByteBuf p_294238_) setBytes(int p_295824_, io.netty.buffer.ByteBuf p_294581_, int p_295654_) setBytes(int p_296236_, io.netty.buffer.ByteBuf p_295709_, int p_294354_, int p_295897_) intsetBytes(int p_130380_, InputStream p_130381_, int p_130382_) setBytes(int p_294827_, ByteBuffer p_295408_) intsetBytes(int p_130387_, FileChannel p_130388_, long p_130389_, int p_130390_) intsetBytes(int p_130392_, ScatteringByteChannel p_130393_, int p_130394_) setChar(int p_295571_, int p_295295_) intsetCharSequence(int p_130407_, CharSequence p_130408_, Charset p_130409_) setDouble(int p_294330_, double p_295264_) setFloat(int p_295320_, float p_296028_) setIndex(int p_296056_, int p_295480_) setInt(int p_295466_, int p_295351_) setIntLE(int p_296041_, int p_295343_) setLong(int p_295413_, long p_294370_) setLongLE(int p_294242_, long p_295126_) setMedium(int p_295726_, int p_296052_) setMediumLE(int p_296476_, int p_295239_) setShort(int p_295713_, int p_296093_) setShortLE(int p_295748_, int p_294784_) setZero(int p_295002_, int p_295655_) skipBytes(int p_296015_) io.netty.buffer.ByteBufslice()io.netty.buffer.ByteBufslice(int p_130450_, int p_130451_) toString()touch()io.netty.buffer.ByteBufunwrap()intvoidwriteBitSet(BitSet p_178351_) voidwriteBlockHitResult(BlockHitResult p_130063_) static voidwriteBlockPos(io.netty.buffer.ByteBuf p_320943_, BlockPos p_320546_) writeBlockPos(BlockPos p_130065_) writeBoolean(boolean p_295682_) <T> FriendlyByteBufwriteById(ToIntFunction<T> p_295233_, T p_294192_) writeByte(int p_295618_) writeByteArray(byte[] p_130088_) static voidwriteByteArray(io.netty.buffer.ByteBuf p_324397_, byte[] p_324485_) writeBytes(byte[] p_296194_) writeBytes(byte[] p_294409_, int p_295416_, int p_294380_) writeBytes(io.netty.buffer.ByteBuf p_295011_) writeBytes(io.netty.buffer.ByteBuf p_295384_, int p_295311_) writeBytes(io.netty.buffer.ByteBuf p_295348_, int p_294807_, int p_294737_) intwriteBytes(InputStream p_130481_, int p_130482_) writeBytes(ByteBuffer p_295937_) intwriteBytes(FileChannel p_130486_, long p_130487_, int p_130488_) intwriteBytes(ScatteringByteChannel p_130490_, int p_130491_) writeChar(int p_295369_) intwriteCharSequence(CharSequence p_130501_, Charset p_130502_) writeChunkPos(ChunkPos p_178342_) <T> voidwriteCollection(Collection<T> p_236829_, StreamEncoder<? super FriendlyByteBuf, T> p_319902_) writeDouble(double p_295463_) <E extends Enum<E>>
voidwriteEnumSet(EnumSet<E> p_250400_, Class<E> p_250673_) voidwriteFixedBitSet(BitSet p_248698_, int p_248869_) writeFloat(float p_294332_) voidwriteGlobalPos(GlobalPos p_236815_) voidwriteInstant(Instant p_236827_) writeInt(int p_296090_) voidwriteIntIdList(it.unimi.dsi.fastutil.ints.IntList p_178346_) writeIntLE(int p_294626_) <T> voidwriteJsonWithCodec(com.mojang.serialization.Codec<T> p_273285_, T p_272770_) writeLong(long p_295423_) writeLongArray(long[] p_130092_) writeLongLE(long p_294730_) <K,V> void writeMap(Map<K, V> p_236832_, StreamEncoder<? super FriendlyByteBuf, K> p_320909_, StreamEncoder<? super FriendlyByteBuf, V> p_320188_) writeMedium(int p_296189_) writeMediumLE(int p_295508_) static voidstatic <T,B extends io.netty.buffer.ByteBuf>
voidwriteNullable(B p_324502_, T p_324536_, StreamEncoder<? super B, T> p_324547_) <T> voidwriteNullable(T p_236822_, StreamEncoder<? super FriendlyByteBuf, T> p_320116_) <T> voidwriteOptional(Optional<T> p_236836_, StreamEncoder<? super FriendlyByteBuf, T> p_320585_) writePublicKey(PublicKey p_236825_) static voidwriteQuaternion(io.netty.buffer.ByteBuf p_320668_, org.joml.Quaternionf p_320341_) voidwriteQuaternion(org.joml.Quaternionf p_270141_) voidwriteResourceKey(ResourceKey<?> p_236859_) writeResourceLocation(ResourceLocation p_130086_) intwriterIndex(int p_294907_) writeSectionPos(SectionPos p_178344_) writeShort(int p_294734_) writeShortLE(int p_295772_) static voidwriteVarInt(int p_130131_) writeVarIntArray(int[] p_130090_) writeVarLong(long p_130104_) voidstatic voidwriteVector3f(io.netty.buffer.ByteBuf p_320042_, org.joml.Vector3f p_320090_) voidwriteVector3f(org.joml.Vector3f p_270985_) <T> FriendlyByteBufwriteWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266702_, com.mojang.serialization.Codec<T> p_267245_, T p_266783_) Deprecated.writeZero(int p_295016_) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLEMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IFriendlyByteBufExtension
readArray, readMap, writeArray, writeByte, writeMap, writeObjectCollection
-
Field Details
-
DEFAULT_NBT_QUOTA
public static final int DEFAULT_NBT_QUOTA- See Also:
-
source
private final io.netty.buffer.ByteBuf source -
MAX_STRING_LENGTH
public static final short MAX_STRING_LENGTH- See Also:
-
MAX_COMPONENT_STRING_LENGTH
public static final int MAX_COMPONENT_STRING_LENGTH- See Also:
-
PUBLIC_KEY_SIZE
private static final int PUBLIC_KEY_SIZE- See Also:
-
MAX_PUBLIC_KEY_HEADER_SIZE
private static final int MAX_PUBLIC_KEY_HEADER_SIZE- See Also:
-
MAX_PUBLIC_KEY_LENGTH
private static final int MAX_PUBLIC_KEY_LENGTH- See Also:
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
FriendlyByteBuf
public FriendlyByteBuf(io.netty.buffer.ByteBuf p_130051_)
-
-
Method Details
-
readWithCodecTrusted
@Deprecated public <T> T readWithCodecTrusted(com.mojang.serialization.DynamicOps<Tag> p_295347_, com.mojang.serialization.Codec<T> p_296304_) Deprecated. -
readWithCodec
@Deprecated public <T> T readWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266903_, com.mojang.serialization.Codec<T> p_267107_, NbtAccounter p_295027_) Deprecated. -
writeWithCodec
@Deprecated public <T> FriendlyByteBuf writeWithCodec(com.mojang.serialization.DynamicOps<Tag> p_266702_, com.mojang.serialization.Codec<T> p_267245_, T p_266783_) Deprecated. -
readJsonWithCodec
public <T> T readJsonWithCodec(com.mojang.serialization.Codec<T> p_273318_) -
writeJsonWithCodec
public <T> void writeJsonWithCodec(com.mojang.serialization.Codec<T> p_273285_, T p_272770_) -
limitValue
-
readCollection
public <T,C extends Collection<T>> C readCollection(IntFunction<C> p_236839_, StreamDecoder<? super FriendlyByteBuf, T> p_320606_) -
writeCollection
public <T> void writeCollection(Collection<T> p_236829_, StreamEncoder<? super FriendlyByteBuf, T> p_319902_) -
readList
-
readIntIdList
public it.unimi.dsi.fastutil.ints.IntList readIntIdList() -
writeIntIdList
public void writeIntIdList(it.unimi.dsi.fastutil.ints.IntList p_178346_) -
readMap
public <K,V, M readMapM extends Map<K, V>> (IntFunction<M> p_236842_, StreamDecoder<? super FriendlyByteBuf, K> p_320803_, StreamDecoder<? super FriendlyByteBuf, V> p_320748_) -
readMap
public <K,V> Map<K,V> readMap(StreamDecoder<? super FriendlyByteBuf, K> p_319851_, StreamDecoder<? super FriendlyByteBuf, V> p_320732_) -
writeMap
public <K,V> void writeMap(Map<K, V> p_236832_, StreamEncoder<? super FriendlyByteBuf, K> p_320909_, StreamEncoder<? super FriendlyByteBuf, V> p_320188_) -
readWithCount
-
writeEnumSet
-
readEnumSet
-
writeOptional
public <T> void writeOptional(Optional<T> p_236836_, StreamEncoder<? super FriendlyByteBuf, T> p_320585_) -
readOptional
-
readNullable
-
readNullable
@Nullable public static <T,B extends io.netty.buffer.ByteBuf> T readNullable(B p_324437_, StreamDecoder<? super B, T> p_324453_) -
writeNullable
public <T> void writeNullable(@Nullable T p_236822_, StreamEncoder<? super FriendlyByteBuf, T> p_320116_) -
writeNullable
public static <T,B extends io.netty.buffer.ByteBuf> void writeNullable(B p_324502_, @Nullable T p_324536_, StreamEncoder<? super B, T> p_324547_) -
readByteArray
public byte[] readByteArray() -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf p_324567_) -
writeByteArray
-
writeByteArray
public static void writeByteArray(io.netty.buffer.ByteBuf p_324397_, byte[] p_324485_) -
readByteArray
public byte[] readByteArray(int p_130102_) -
readByteArray
public static byte[] readByteArray(io.netty.buffer.ByteBuf p_323774_, int p_324044_) -
writeVarIntArray
-
readVarIntArray
public int[] readVarIntArray() -
readVarIntArray
public int[] readVarIntArray(int p_130117_) -
writeLongArray
-
readLongArray
public long[] readLongArray() -
readLongArray
public long[] readLongArray(@Nullable long[] p_130106_) -
readLongArray
public long[] readLongArray(@Nullable long[] p_130094_, int p_130095_) -
readBlockPos
-
readBlockPos
-
writeBlockPos
-
writeBlockPos
-
readChunkPos
-
writeChunkPos
-
readSectionPos
-
writeSectionPos
-
readGlobalPos
-
writeGlobalPos
-
readVector3f
public org.joml.Vector3f readVector3f() -
readVector3f
public static org.joml.Vector3f readVector3f(io.netty.buffer.ByteBuf p_320362_) -
writeVector3f
public void writeVector3f(org.joml.Vector3f p_270985_) -
writeVector3f
public static void writeVector3f(io.netty.buffer.ByteBuf p_320042_, org.joml.Vector3f p_320090_) -
readQuaternion
public org.joml.Quaternionf readQuaternion() -
readQuaternion
public static org.joml.Quaternionf readQuaternion(io.netty.buffer.ByteBuf p_319961_) -
writeQuaternion
public void writeQuaternion(org.joml.Quaternionf p_270141_) -
writeQuaternion
public static void writeQuaternion(io.netty.buffer.ByteBuf p_320668_, org.joml.Quaternionf p_320341_) -
readVec3
-
writeVec3
-
readEnum
-
writeEnum
-
readById
-
writeById
-
readVarInt
public int readVarInt() -
readVarLong
public long readVarLong() -
writeUUID
-
writeUUID
-
readUUID
-
readUUID
-
writeVarInt
-
writeVarLong
-
writeNbt
-
writeNbt
-
readNbt
-
readNbt
-
readNbt
-
readNbt
-
readUtf
-
readUtf
-
writeUtf
-
writeUtf
-
readResourceLocation
-
writeResourceLocation
-
readResourceKey
-
writeResourceKey
-
readRegistryKey
-
readDate
-
writeDate
-
readInstant
-
writeInstant
-
readPublicKey
-
writePublicKey
-
readBlockHitResult
-
writeBlockHitResult
-
readBitSet
-
writeBitSet
-
readFixedBitSet
-
writeFixedBitSet
-
isContiguous
public boolean isContiguous()- Overrides:
isContiguousin classio.netty.buffer.ByteBuf
-
maxFastWritableBytes
public int maxFastWritableBytes()- Overrides:
maxFastWritableBytesin classio.netty.buffer.ByteBuf
-
capacity
public int capacity()- Specified by:
capacityin classio.netty.buffer.ByteBuf
-
capacity
- Specified by:
capacityin classio.netty.buffer.ByteBuf
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacityin classio.netty.buffer.ByteBuf
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin classio.netty.buffer.ByteBuf
-
order
- Specified by:
orderin classio.netty.buffer.ByteBuf
-
order
- Specified by:
orderin classio.netty.buffer.ByteBuf
-
unwrap
public io.netty.buffer.ByteBuf unwrap()- Specified by:
unwrapin classio.netty.buffer.ByteBuf
-
isDirect
public boolean isDirect()- Specified by:
isDirectin classio.netty.buffer.ByteBuf
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classio.netty.buffer.ByteBuf
-
asReadOnly
public io.netty.buffer.ByteBuf asReadOnly()- Specified by:
asReadOnlyin classio.netty.buffer.ByteBuf
-
readerIndex
public int readerIndex()- Specified by:
readerIndexin classio.netty.buffer.ByteBuf
-
readerIndex
- Specified by:
readerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
writerIndex
- Specified by:
writerIndexin classio.netty.buffer.ByteBuf
-
setIndex
- Specified by:
setIndexin classio.netty.buffer.ByteBuf
-
readableBytes
public int readableBytes()- Specified by:
readableBytesin classio.netty.buffer.ByteBuf
-
writableBytes
public int writableBytes()- Specified by:
writableBytesin classio.netty.buffer.ByteBuf
-
maxWritableBytes
public int maxWritableBytes()- Specified by:
maxWritableBytesin classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable()- Specified by:
isReadablein classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable(int p_130254_) - Specified by:
isReadablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable()- Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable(int p_130257_) - Specified by:
isWritablein classio.netty.buffer.ByteBuf
-
clear
- Specified by:
clearin classio.netty.buffer.ByteBuf
-
markReaderIndex
- Specified by:
markReaderIndexin classio.netty.buffer.ByteBuf
-
resetReaderIndex
- Specified by:
resetReaderIndexin classio.netty.buffer.ByteBuf
-
markWriterIndex
- Specified by:
markWriterIndexin classio.netty.buffer.ByteBuf
-
resetWriterIndex
- Specified by:
resetWriterIndexin classio.netty.buffer.ByteBuf
-
discardReadBytes
- Specified by:
discardReadBytesin classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytesin classio.netty.buffer.ByteBuf
-
ensureWritable
- Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int p_130141_, boolean p_130142_) - Specified by:
ensureWritablein classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int p_130159_) - Specified by:
getBooleanin classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int p_130161_) - Specified by:
getBytein classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int p_130225_) - Specified by:
getUnsignedBytein classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int p_130221_) - Specified by:
getShortin classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int p_130223_) - Specified by:
getShortLEin classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int p_130235_) - Specified by:
getUnsignedShortin classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int p_130237_) - Specified by:
getUnsignedShortLEin classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int p_130217_) - Specified by:
getMediumin classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int p_130219_) - Specified by:
getMediumLEin classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int p_130231_) - Specified by:
getUnsignedMediumin classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int p_130233_) - Specified by:
getUnsignedMediumLEin classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int p_130209_) - Specified by:
getIntin classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int p_130211_) - Specified by:
getIntLEin classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int p_130227_) - Specified by:
getUnsignedIntin classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int p_130229_) - Specified by:
getUnsignedIntLEin classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int p_130213_) - Specified by:
getLongin classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int p_130215_) - Specified by:
getLongLEin classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int p_130199_) - Specified by:
getCharin classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int p_130207_) - Specified by:
getFloatin classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int p_130205_) - Specified by:
getDoublein classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public FriendlyByteBuf getBytes(int p_294107_, io.netty.buffer.ByteBuf p_296448_, int p_295017_, int p_294733_) - Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytesin classio.netty.buffer.ByteBuf
-
getBytes
public FriendlyByteBuf getBytes(int p_294277_, OutputStream p_296069_, int p_296395_) throws IOException - Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
public int getBytes(int p_130187_, GatheringByteChannel p_130188_, int p_130189_) throws IOException - Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getBytes
public int getBytes(int p_130182_, FileChannel p_130183_, long p_130184_, int p_130185_) throws IOException - Specified by:
getBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
getCharSequence
- Specified by:
getCharSequencein classio.netty.buffer.ByteBuf
-
setBoolean
- Specified by:
setBooleanin classio.netty.buffer.ByteBuf
-
setByte
- Specified by:
setBytein classio.netty.buffer.ByteBuf
-
setShort
- Specified by:
setShortin classio.netty.buffer.ByteBuf
-
setShortLE
- Specified by:
setShortLEin classio.netty.buffer.ByteBuf
-
setMedium
- Specified by:
setMediumin classio.netty.buffer.ByteBuf
-
setMediumLE
- Specified by:
setMediumLEin classio.netty.buffer.ByteBuf
-
setInt
- Specified by:
setIntin classio.netty.buffer.ByteBuf
-
setIntLE
- Specified by:
setIntLEin classio.netty.buffer.ByteBuf
-
setLong
- Specified by:
setLongin classio.netty.buffer.ByteBuf
-
setLongLE
- Specified by:
setLongLEin classio.netty.buffer.ByteBuf
-
setChar
- Specified by:
setCharin classio.netty.buffer.ByteBuf
-
setFloat
- Specified by:
setFloatin classio.netty.buffer.ByteBuf
-
setDouble
- Specified by:
setDoublein classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
public FriendlyByteBuf setBytes(int p_296236_, io.netty.buffer.ByteBuf p_295709_, int p_294354_, int p_295897_) - Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
public int setBytes(int p_130392_, ScatteringByteChannel p_130393_, int p_130394_) throws IOException - Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setBytes
public int setBytes(int p_130387_, FileChannel p_130388_, long p_130389_, int p_130390_) throws IOException - Specified by:
setBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
setZero
- Specified by:
setZeroin classio.netty.buffer.ByteBuf
-
setCharSequence
- Specified by:
setCharSequencein classio.netty.buffer.ByteBuf
-
readBoolean
public boolean readBoolean()- Specified by:
readBooleanin classio.netty.buffer.ByteBuf
-
readByte
public byte readByte()- Specified by:
readBytein classio.netty.buffer.ByteBuf
-
readUnsignedByte
public short readUnsignedByte()- Specified by:
readUnsignedBytein classio.netty.buffer.ByteBuf
-
readShort
public short readShort()- Specified by:
readShortin classio.netty.buffer.ByteBuf
-
readShortLE
public short readShortLE()- Specified by:
readShortLEin classio.netty.buffer.ByteBuf
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin classio.netty.buffer.ByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()- Specified by:
readUnsignedShortLEin classio.netty.buffer.ByteBuf
-
readMedium
public int readMedium()- Specified by:
readMediumin classio.netty.buffer.ByteBuf
-
readMediumLE
public int readMediumLE()- Specified by:
readMediumLEin classio.netty.buffer.ByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMediumin classio.netty.buffer.ByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()- Specified by:
readUnsignedMediumLEin classio.netty.buffer.ByteBuf
-
readInt
public int readInt()- Specified by:
readIntin classio.netty.buffer.ByteBuf
-
readIntLE
public int readIntLE()- Specified by:
readIntLEin classio.netty.buffer.ByteBuf
-
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedIntin classio.netty.buffer.ByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()- Specified by:
readUnsignedIntLEin classio.netty.buffer.ByteBuf
-
readLong
public long readLong()- Specified by:
readLongin classio.netty.buffer.ByteBuf
-
readLongLE
public long readLongLE()- Specified by:
readLongLEin classio.netty.buffer.ByteBuf
-
readChar
public char readChar()- Specified by:
readCharin classio.netty.buffer.ByteBuf
-
readFloat
public float readFloat()- Specified by:
readFloatin classio.netty.buffer.ByteBuf
-
readDouble
public double readDouble()- Specified by:
readDoublein classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(int p_130287_) - Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int p_130332_) - Specified by:
readSlicein classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int p_130328_) - Specified by:
readRetainedSlicein classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
readCharSequence
- Specified by:
readCharSequencein classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin classio.netty.buffer.ByteBuf
-
writeBoolean
- Specified by:
writeBooleanin classio.netty.buffer.ByteBuf
-
writeByte
- Specified by:
writeBytein classio.netty.buffer.ByteBuf
-
writeShort
- Specified by:
writeShortin classio.netty.buffer.ByteBuf
-
writeShortLE
- Specified by:
writeShortLEin classio.netty.buffer.ByteBuf
-
writeMedium
- Specified by:
writeMediumin classio.netty.buffer.ByteBuf
-
writeMediumLE
- Specified by:
writeMediumLEin classio.netty.buffer.ByteBuf
-
writeInt
- Specified by:
writeIntin classio.netty.buffer.ByteBuf
-
writeIntLE
- Specified by:
writeIntLEin classio.netty.buffer.ByteBuf
-
writeLong
- Specified by:
writeLongin classio.netty.buffer.ByteBuf
-
writeLongLE
- Specified by:
writeLongLEin classio.netty.buffer.ByteBuf
-
writeChar
- Specified by:
writeCharin classio.netty.buffer.ByteBuf
-
writeFloat
- Specified by:
writeFloatin classio.netty.buffer.ByteBuf
-
writeDouble
- Specified by:
writeDoublein classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classio.netty.buffer.ByteBuf- Throws:
IOException
-
writeZero
- Specified by:
writeZeroin classio.netty.buffer.ByteBuf
-
writeCharSequence
- Specified by:
writeCharSequencein classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int p_130244_, int p_130245_, byte p_130246_) - Specified by:
indexOfin classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte p_130108_) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int p_130110_, byte p_130111_) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int p_130113_, int p_130114_, byte p_130115_) - Specified by:
bytesBeforein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor p_130150_) - Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) - Specified by:
forEachBytein classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor p_130156_) - Specified by:
forEachByteDescin classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) - Specified by:
forEachByteDescin classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy()- Specified by:
copyin classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy(int p_130128_, int p_130129_) - Specified by:
copyin classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice()- Specified by:
slicein classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice()- Specified by:
retainedSlicein classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice(int p_130450_, int p_130451_) - Specified by:
slicein classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int p_130359_, int p_130360_) - Specified by:
retainedSlicein classio.netty.buffer.ByteBuf
-
duplicate
public io.netty.buffer.ByteBuf duplicate()- Specified by:
duplicatein classio.netty.buffer.ByteBuf
-
retainedDuplicate
public io.netty.buffer.ByteBuf retainedDuplicate()- Specified by:
retainedDuplicatein classio.netty.buffer.ByteBuf
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCountin classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBufferin classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBufferin classio.netty.buffer.ByteBuf
-
internalNioBuffer
- Specified by:
internalNioBufferin classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classio.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()- Specified by:
hasArrayin classio.netty.buffer.ByteBuf
-
array
public byte[] array()- Specified by:
arrayin classio.netty.buffer.ByteBuf
-
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin classio.netty.buffer.ByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddressin classio.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddressin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
hashCode
public int hashCode()- Specified by:
hashCodein classio.netty.buffer.ByteBuf
-
equals
- Specified by:
equalsin classio.netty.buffer.ByteBuf
-
compareTo
public int compareTo(io.netty.buffer.ByteBuf p_130123_) - Specified by:
compareToin interfaceComparable<io.netty.buffer.ByteBuf>- Specified by:
compareToin classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toStringin classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.netty.buffer.ByteBuf
-
retain
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Specified by:
retainin classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Specified by:
touchin classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Specified by:
touchin classio.netty.buffer.ByteBuf
-
refCnt
public int refCnt()- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int p_130347_) - Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
getSource
@Internal public io.netty.buffer.ByteBuf getSource()
-