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>
,IForgeFriendlyByteBuf
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final int
private static final int
private static final int
static final short
private static final int
private static final int
private static final int
private final io.netty.buffer.ByteBuf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
io.netty.buffer.ByteBufAllocator
alloc()
byte[]
array()
int
io.netty.buffer.ByteBuf
int
bytesBefore
(byte p_130108_) int
bytesBefore
(int p_130110_, byte p_130111_) int
bytesBefore
(int p_130113_, int p_130114_, byte p_130115_) int
capacity()
io.netty.buffer.ByteBuf
capacity
(int p_130120_) io.netty.buffer.ByteBuf
clear()
int
compareTo
(io.netty.buffer.ByteBuf p_130123_) io.netty.buffer.ByteBuf
copy()
io.netty.buffer.ByteBuf
copy
(int p_130128_, int p_130129_) io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
ensureWritable
(int p_130139_) int
ensureWritable
(int p_130141_, boolean p_130142_) boolean
int
forEachByte
(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) int
forEachByte
(io.netty.util.ByteProcessor p_130150_) int
forEachByteDesc
(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) int
forEachByteDesc
(io.netty.util.ByteProcessor p_130156_) boolean
getBoolean
(int p_130159_) byte
getByte
(int p_130161_) io.netty.buffer.ByteBuf
getBytes
(int p_130191_, byte[] p_130192_) io.netty.buffer.ByteBuf
getBytes
(int p_130194_, byte[] p_130195_, int p_130196_, int p_130197_) io.netty.buffer.ByteBuf
getBytes
(int p_130163_, io.netty.buffer.ByteBuf p_130164_) io.netty.buffer.ByteBuf
getBytes
(int p_130166_, io.netty.buffer.ByteBuf p_130167_, int p_130168_) io.netty.buffer.ByteBuf
getBytes
(int p_130170_, io.netty.buffer.ByteBuf p_130171_, int p_130172_, int p_130173_) io.netty.buffer.ByteBuf
getBytes
(int p_130175_, OutputStream p_130176_, int p_130177_) io.netty.buffer.ByteBuf
getBytes
(int p_130179_, ByteBuffer p_130180_) int
getBytes
(int p_130182_, FileChannel p_130183_, long p_130184_, int p_130185_) int
getBytes
(int p_130187_, GatheringByteChannel p_130188_, int p_130189_) char
getChar
(int p_130199_) getCharSequence
(int p_130201_, int p_130202_, Charset p_130203_) double
getDouble
(int p_130205_) float
getFloat
(int p_130207_) int
getInt
(int p_130209_) int
getIntLE
(int p_130211_) long
getLong
(int p_130213_) long
getLongLE
(int p_130215_) private static int
getMaxEncodedUtfLength
(int p_236871_) int
getMedium
(int p_130217_) int
getMediumLE
(int p_130219_) short
getShort
(int p_130221_) short
getShortLE
(int p_130223_) short
getUnsignedByte
(int p_130225_) long
getUnsignedInt
(int p_130227_) long
getUnsignedIntLE
(int p_130229_) int
getUnsignedMedium
(int p_130231_) int
getUnsignedMediumLE
(int p_130233_) int
getUnsignedShort
(int p_130235_) int
getUnsignedShortLE
(int p_130237_) static int
getVarIntSize
(int p_130054_) static int
getVarLongSize
(long p_178340_) boolean
hasArray()
int
hashCode()
boolean
int
indexOf
(int p_130244_, int p_130245_, byte p_130246_) internalNioBuffer
(int p_130248_, int p_130249_) boolean
isDirect()
boolean
boolean
isReadable
(int p_130254_) boolean
boolean
boolean
isWritable
(int p_130257_) static <T> IntFunction<T>
limitValue
(IntFunction<T> p_182696_, int p_182697_) io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
int
int
long
nioBuffer
(int p_130270_, int p_130271_) int
nioBuffers
(int p_130275_, int p_130276_) order()
io.netty.buffer.ByteBuf
int
boolean
<T> T
byte
readByte()
byte[]
byte[]
readByteArray
(int p_130102_) io.netty.buffer.ByteBuf
readBytes
(byte[] p_130310_) io.netty.buffer.ByteBuf
readBytes
(byte[] p_130312_, int p_130313_, int p_130314_) io.netty.buffer.ByteBuf
readBytes
(int p_130287_) io.netty.buffer.ByteBuf
readBytes
(io.netty.buffer.ByteBuf p_130289_) io.netty.buffer.ByteBuf
readBytes
(io.netty.buffer.ByteBuf p_130291_, int p_130292_) io.netty.buffer.ByteBuf
readBytes
(io.netty.buffer.ByteBuf p_130294_, int p_130295_, int p_130296_) io.netty.buffer.ByteBuf
readBytes
(OutputStream p_130298_, int p_130299_) io.netty.buffer.ByteBuf
readBytes
(ByteBuffer p_130301_) int
readBytes
(FileChannel p_130303_, long p_130304_, int p_130305_) int
readBytes
(GatheringByteChannel p_130307_, int p_130308_) char
readChar()
readCharSequence
(int p_130317_, Charset p_130318_) <T,
C extends Collection<T>>
CreadCollection
(IntFunction<C> p_236839_, FriendlyByteBuf.Reader<T> p_236840_) readDate()
double
<L,
R> com.mojang.datafixers.util.Either<L, R> readEither
(FriendlyByteBuf.Reader<L> p_236863_, FriendlyByteBuf.Reader<R> p_236864_) <T extends Enum<T>>
Tint
io.netty.buffer.ByteBuf
readerIndex
(int p_130343_) float
com.mojang.authlib.GameProfile
int
readInt()
it.unimi.dsi.fastutil.ints.IntList
int
readItem()
<T> List<T>
readList
(FriendlyByteBuf.Reader<T> p_236846_) long
readLong()
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_, FriendlyByteBuf.Reader<K> p_236843_, FriendlyByteBuf.Reader<V> p_236844_) <K,
V> Map<K, V> readMap
(FriendlyByteBuf.Reader<K> p_236848_, FriendlyByteBuf.Reader<V> p_236849_) int
int
readNbt()
readNbt
(NbtAccounter p_130082_) <T> T
readNullable
(FriendlyByteBuf.Reader<T> p_236869_) <T> Optional<T>
readOptional
(FriendlyByteBuf.Reader<T> p_236861_) com.mojang.authlib.properties.Property
<T> ResourceKey<T>
readResourceKey
(ResourceKey<? extends Registry<T>> p_236802_) io.netty.buffer.ByteBuf
readRetainedSlice
(int p_130328_) short
short
io.netty.buffer.ByteBuf
readSlice
(int p_130332_) short
long
long
int
int
int
int
readUtf()
readUtf
(int p_130137_) readUUID()
int
int[]
int[]
readVarIntArray
(int p_130117_) long
<T> T
readWithCodec
(com.mojang.serialization.Codec<T> p_130058_) Deprecated.void
readWithCount
(Consumer<FriendlyByteBuf> p_178365_) int
refCnt()
boolean
release()
boolean
release
(int p_130347_) io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
retain()
io.netty.buffer.ByteBuf
retain
(int p_130353_) io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
retainedSlice
(int p_130359_, int p_130360_) io.netty.buffer.ByteBuf
setBoolean
(int p_130362_, boolean p_130363_) io.netty.buffer.ByteBuf
setByte
(int p_130365_, int p_130366_) io.netty.buffer.ByteBuf
setBytes
(int p_130396_, byte[] p_130397_) io.netty.buffer.ByteBuf
setBytes
(int p_130399_, byte[] p_130400_, int p_130401_, int p_130402_) io.netty.buffer.ByteBuf
setBytes
(int p_130368_, io.netty.buffer.ByteBuf p_130369_) io.netty.buffer.ByteBuf
setBytes
(int p_130371_, io.netty.buffer.ByteBuf p_130372_, int p_130373_) io.netty.buffer.ByteBuf
setBytes
(int p_130375_, io.netty.buffer.ByteBuf p_130376_, int p_130377_, int p_130378_) int
setBytes
(int p_130380_, InputStream p_130381_, int p_130382_) io.netty.buffer.ByteBuf
setBytes
(int p_130384_, ByteBuffer p_130385_) int
setBytes
(int p_130387_, FileChannel p_130388_, long p_130389_, int p_130390_) int
setBytes
(int p_130392_, ScatteringByteChannel p_130393_, int p_130394_) io.netty.buffer.ByteBuf
setChar
(int p_130404_, int p_130405_) int
setCharSequence
(int p_130407_, CharSequence p_130408_, Charset p_130409_) io.netty.buffer.ByteBuf
setDouble
(int p_130411_, double p_130412_) io.netty.buffer.ByteBuf
setFloat
(int p_130414_, float p_130415_) io.netty.buffer.ByteBuf
setIndex
(int p_130417_, int p_130418_) io.netty.buffer.ByteBuf
setInt
(int p_130420_, int p_130421_) io.netty.buffer.ByteBuf
setIntLE
(int p_130423_, int p_130424_) io.netty.buffer.ByteBuf
setLong
(int p_130426_, long p_130427_) io.netty.buffer.ByteBuf
setLongLE
(int p_130429_, long p_130430_) io.netty.buffer.ByteBuf
setMedium
(int p_130432_, int p_130433_) io.netty.buffer.ByteBuf
setMediumLE
(int p_130435_, int p_130436_) io.netty.buffer.ByteBuf
setShort
(int p_130438_, int p_130439_) io.netty.buffer.ByteBuf
setShortLE
(int p_130441_, int p_130442_) io.netty.buffer.ByteBuf
setZero
(int p_130444_, int p_130445_) io.netty.buffer.ByteBuf
skipBytes
(int p_130447_) io.netty.buffer.ByteBuf
slice()
io.netty.buffer.ByteBuf
slice
(int p_130450_, int p_130451_) toString()
io.netty.buffer.ByteBuf
touch()
io.netty.buffer.ByteBuf
io.netty.buffer.ByteBuf
unwrap()
int
void
writeBitSet
(BitSet p_178351_) void
writeBlockHitResult
(BlockHitResult p_130063_) writeBlockPos
(BlockPos p_130065_) io.netty.buffer.ByteBuf
writeBoolean
(boolean p_130468_) io.netty.buffer.ByteBuf
writeByte
(int p_130470_) writeByteArray
(byte[] p_130088_) io.netty.buffer.ByteBuf
writeBytes
(byte[] p_130493_) io.netty.buffer.ByteBuf
writeBytes
(byte[] p_130495_, int p_130496_, int p_130497_) io.netty.buffer.ByteBuf
writeBytes
(io.netty.buffer.ByteBuf p_130472_) io.netty.buffer.ByteBuf
writeBytes
(io.netty.buffer.ByteBuf p_130474_, int p_130475_) io.netty.buffer.ByteBuf
writeBytes
(io.netty.buffer.ByteBuf p_130477_, int p_130478_, int p_130479_) int
writeBytes
(InputStream p_130481_, int p_130482_) io.netty.buffer.ByteBuf
writeBytes
(ByteBuffer p_130484_) int
writeBytes
(FileChannel p_130486_, long p_130487_, int p_130488_) int
writeBytes
(ScatteringByteChannel p_130490_, int p_130491_) io.netty.buffer.ByteBuf
writeChar
(int p_130499_) int
writeCharSequence
(CharSequence p_130501_, Charset p_130502_) writeChunkPos
(ChunkPos p_178342_) <T> void
writeCollection
(Collection<T> p_236829_, FriendlyByteBuf.Writer<T> p_236830_) writeComponent
(Component p_130084_) io.netty.buffer.ByteBuf
writeDouble
(double p_130504_) <L,
R> void writeEither
(com.mojang.datafixers.util.Either<L, R> p_236811_, FriendlyByteBuf.Writer<L> p_236812_, FriendlyByteBuf.Writer<R> p_236813_) io.netty.buffer.ByteBuf
writeFloat
(float p_130506_) void
writeGameProfile
(com.mojang.authlib.GameProfile p_236804_) void
writeGlobalPos
(GlobalPos p_236815_) <T> void
void
writeInstant
(Instant p_236827_) io.netty.buffer.ByteBuf
writeInt
(int p_130508_) void
writeIntIdList
(it.unimi.dsi.fastutil.ints.IntList p_178346_) io.netty.buffer.ByteBuf
writeIntLE
(int p_130510_) writeItemStack
(ItemStack p_130056_, boolean limitedTag) Most ItemStack serialization is Server to Client,and doesn't need to know the FULL tag details.io.netty.buffer.ByteBuf
writeLong
(long p_130512_) writeLongArray
(long[] p_130092_) io.netty.buffer.ByteBuf
writeLongLE
(long p_130514_) <K,
V> void writeMap
(Map<K, V> p_236832_, FriendlyByteBuf.Writer<K> p_236833_, FriendlyByteBuf.Writer<V> p_236834_) io.netty.buffer.ByteBuf
writeMedium
(int p_130516_) io.netty.buffer.ByteBuf
writeMediumLE
(int p_130518_) writeNbt
(CompoundTag p_130080_) <T> void
writeNullable
(T p_236822_, FriendlyByteBuf.Writer<T> p_236823_) <T> void
writeOptional
(Optional<T> p_236836_, FriendlyByteBuf.Writer<T> p_236837_) void
writeProperty
(com.mojang.authlib.properties.Property p_236806_) writePublicKey
(PublicKey p_236825_) void
writeResourceKey
(ResourceKey<?> p_236859_) writeResourceLocation
(ResourceLocation p_130086_) int
io.netty.buffer.ByteBuf
writerIndex
(int p_130527_) writeSectionPos
(SectionPos p_178344_) io.netty.buffer.ByteBuf
writeShort
(int p_130520_) io.netty.buffer.ByteBuf
writeShortLE
(int p_130522_) writeVarInt
(int p_130131_) writeVarIntArray
(int[] p_130090_) writeVarLong
(long p_130104_) <T> void
writeWithCodec
(com.mojang.serialization.Codec<T> p_130060_, T p_130061_) Deprecated.io.netty.buffer.ByteBuf
writeZero
(int p_130524_) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, isContiguous, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeFriendlyByteBuf
readFluidStack, readRegistryId, readRegistryIdSafe, readRegistryIdUnsafe, writeFluidStack, writeRegistryId, writeRegistryIdUnsafe, writeRegistryIdUnsafe
-
Field Details
-
MAX_VARINT_SIZE
private static final int MAX_VARINT_SIZE- See Also:
-
MAX_VARLONG_SIZE
private static final int MAX_VARLONG_SIZE- See Also:
-
DEFAULT_NBT_QUOTA
private 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:
-
-
Constructor Details
-
FriendlyByteBuf
public FriendlyByteBuf(io.netty.buffer.ByteBuf p_130051_)
-
-
Method Details
-
getVarIntSize
public static int getVarIntSize(int p_130054_) -
getVarLongSize
public static int getVarLongSize(long p_178340_) -
readWithCodec
public <T> T readWithCodec(com.mojang.serialization.Codec<T> p_130058_) Deprecated. -
writeWithCodec
public <T> void writeWithCodec(com.mojang.serialization.Codec<T> p_130060_, T p_130061_) Deprecated. -
writeId
-
readById
-
limitValue
-
readCollection
public <T,C extends Collection<T>> C readCollection(IntFunction<C> p_236839_, FriendlyByteBuf.Reader<T> p_236840_) -
writeCollection
-
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_, FriendlyByteBuf.Reader<K> p_236843_, FriendlyByteBuf.Reader<V> p_236844_) -
readMap
public <K,V> Map<K,V> readMap(FriendlyByteBuf.Reader<K> p_236848_, FriendlyByteBuf.Reader<V> p_236849_) -
writeMap
public <K,V> void writeMap(Map<K, V> p_236832_, FriendlyByteBuf.Writer<K> p_236833_, FriendlyByteBuf.Writer<V> p_236834_) -
readWithCount
-
writeOptional
-
readOptional
-
readNullable
-
writeNullable
-
writeEither
public <L,R> void writeEither(com.mojang.datafixers.util.Either<L, R> p_236811_, FriendlyByteBuf.Writer<L> p_236812_, FriendlyByteBuf.Writer<R> p_236813_) -
readEither
public <L,R> com.mojang.datafixers.util.Either<L,R> readEither(FriendlyByteBuf.Reader<L> p_236863_, FriendlyByteBuf.Reader<R> p_236864_) -
readByteArray
public byte[] readByteArray() -
writeByteArray
-
readByteArray
public byte[] readByteArray(int p_130102_) -
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_) -
accessByteBufWithCorrectSize
public byte[] accessByteBufWithCorrectSize() -
readBlockPos
-
writeBlockPos
-
readChunkPos
-
writeChunkPos
-
readSectionPos
-
writeSectionPos
-
readGlobalPos
-
writeGlobalPos
-
readComponent
-
writeComponent
-
readEnum
-
writeEnum
-
readVarInt
public int readVarInt() -
readVarLong
public long readVarLong() -
writeUUID
-
readUUID
-
writeVarInt
-
writeVarLong
-
writeNbt
-
readNbt
-
readAnySizeNbt
-
readNbt
-
writeItem
-
writeItemStack
Most ItemStack serialization is Server to Client,and doesn't need to know the FULL tag details. One exception is items from the creative menu, which must be sent from Client to Server with their full NBT. If you want to send the FULL tag set limitedTag to false -
readItem
-
readUtf
-
readUtf
-
writeUtf
-
writeUtf
-
getMaxEncodedUtfLength
private static int getMaxEncodedUtfLength(int p_236871_) -
readResourceLocation
-
writeResourceLocation
-
readResourceKey
-
writeResourceKey
-
readDate
-
writeDate
-
readInstant
-
writeInstant
-
readPublicKey
-
writePublicKey
-
readBlockHitResult
-
writeBlockHitResult
-
readBitSet
-
writeBitSet
-
readGameProfile
public com.mojang.authlib.GameProfile readGameProfile() -
writeGameProfile
public void writeGameProfile(com.mojang.authlib.GameProfile p_236804_) -
readProperty
public com.mojang.authlib.properties.Property readProperty() -
writeProperty
public void writeProperty(com.mojang.authlib.properties.Property p_236806_) -
capacity
public int capacity()- Specified by:
capacity
in classio.netty.buffer.ByteBuf
-
capacity
public io.netty.buffer.ByteBuf capacity(int p_130120_) - Specified by:
capacity
in classio.netty.buffer.ByteBuf
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacity
in classio.netty.buffer.ByteBuf
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
alloc
in classio.netty.buffer.ByteBuf
-
order
- Specified by:
order
in classio.netty.buffer.ByteBuf
-
order
- Specified by:
order
in classio.netty.buffer.ByteBuf
-
unwrap
public io.netty.buffer.ByteBuf unwrap()- Specified by:
unwrap
in classio.netty.buffer.ByteBuf
-
isDirect
public boolean isDirect()- Specified by:
isDirect
in classio.netty.buffer.ByteBuf
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classio.netty.buffer.ByteBuf
-
asReadOnly
public io.netty.buffer.ByteBuf asReadOnly()- Specified by:
asReadOnly
in classio.netty.buffer.ByteBuf
-
readerIndex
public int readerIndex()- Specified by:
readerIndex
in classio.netty.buffer.ByteBuf
-
readerIndex
public io.netty.buffer.ByteBuf readerIndex(int p_130343_) - Specified by:
readerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
writerIndex
public io.netty.buffer.ByteBuf writerIndex(int p_130527_) - Specified by:
writerIndex
in classio.netty.buffer.ByteBuf
-
setIndex
public io.netty.buffer.ByteBuf setIndex(int p_130417_, int p_130418_) - Specified by:
setIndex
in classio.netty.buffer.ByteBuf
-
readableBytes
public int readableBytes()- Specified by:
readableBytes
in classio.netty.buffer.ByteBuf
-
writableBytes
public int writableBytes()- Specified by:
writableBytes
in classio.netty.buffer.ByteBuf
-
maxWritableBytes
public int maxWritableBytes()- Specified by:
maxWritableBytes
in classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable()- Specified by:
isReadable
in classio.netty.buffer.ByteBuf
-
isReadable
public boolean isReadable(int p_130254_) - Specified by:
isReadable
in classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable()- Specified by:
isWritable
in classio.netty.buffer.ByteBuf
-
isWritable
public boolean isWritable(int p_130257_) - Specified by:
isWritable
in classio.netty.buffer.ByteBuf
-
clear
public io.netty.buffer.ByteBuf clear()- Specified by:
clear
in classio.netty.buffer.ByteBuf
-
markReaderIndex
public io.netty.buffer.ByteBuf markReaderIndex()- Specified by:
markReaderIndex
in classio.netty.buffer.ByteBuf
-
resetReaderIndex
public io.netty.buffer.ByteBuf resetReaderIndex()- Specified by:
resetReaderIndex
in classio.netty.buffer.ByteBuf
-
markWriterIndex
public io.netty.buffer.ByteBuf markWriterIndex()- Specified by:
markWriterIndex
in classio.netty.buffer.ByteBuf
-
resetWriterIndex
public io.netty.buffer.ByteBuf resetWriterIndex()- Specified by:
resetWriterIndex
in classio.netty.buffer.ByteBuf
-
discardReadBytes
public io.netty.buffer.ByteBuf discardReadBytes()- Specified by:
discardReadBytes
in classio.netty.buffer.ByteBuf
-
discardSomeReadBytes
public io.netty.buffer.ByteBuf discardSomeReadBytes()- Specified by:
discardSomeReadBytes
in classio.netty.buffer.ByteBuf
-
ensureWritable
public io.netty.buffer.ByteBuf ensureWritable(int p_130139_) - Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
ensureWritable
public int ensureWritable(int p_130141_, boolean p_130142_) - Specified by:
ensureWritable
in classio.netty.buffer.ByteBuf
-
getBoolean
public boolean getBoolean(int p_130159_) - Specified by:
getBoolean
in classio.netty.buffer.ByteBuf
-
getByte
public byte getByte(int p_130161_) - Specified by:
getByte
in classio.netty.buffer.ByteBuf
-
getUnsignedByte
public short getUnsignedByte(int p_130225_) - Specified by:
getUnsignedByte
in classio.netty.buffer.ByteBuf
-
getShort
public short getShort(int p_130221_) - Specified by:
getShort
in classio.netty.buffer.ByteBuf
-
getShortLE
public short getShortLE(int p_130223_) - Specified by:
getShortLE
in classio.netty.buffer.ByteBuf
-
getUnsignedShort
public int getUnsignedShort(int p_130235_) - Specified by:
getUnsignedShort
in classio.netty.buffer.ByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int p_130237_) - Specified by:
getUnsignedShortLE
in classio.netty.buffer.ByteBuf
-
getMedium
public int getMedium(int p_130217_) - Specified by:
getMedium
in classio.netty.buffer.ByteBuf
-
getMediumLE
public int getMediumLE(int p_130219_) - Specified by:
getMediumLE
in classio.netty.buffer.ByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int p_130231_) - Specified by:
getUnsignedMedium
in classio.netty.buffer.ByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int p_130233_) - Specified by:
getUnsignedMediumLE
in classio.netty.buffer.ByteBuf
-
getInt
public int getInt(int p_130209_) - Specified by:
getInt
in classio.netty.buffer.ByteBuf
-
getIntLE
public int getIntLE(int p_130211_) - Specified by:
getIntLE
in classio.netty.buffer.ByteBuf
-
getUnsignedInt
public long getUnsignedInt(int p_130227_) - Specified by:
getUnsignedInt
in classio.netty.buffer.ByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int p_130229_) - Specified by:
getUnsignedIntLE
in classio.netty.buffer.ByteBuf
-
getLong
public long getLong(int p_130213_) - Specified by:
getLong
in classio.netty.buffer.ByteBuf
-
getLongLE
public long getLongLE(int p_130215_) - Specified by:
getLongLE
in classio.netty.buffer.ByteBuf
-
getChar
public char getChar(int p_130199_) - Specified by:
getChar
in classio.netty.buffer.ByteBuf
-
getFloat
public float getFloat(int p_130207_) - Specified by:
getFloat
in classio.netty.buffer.ByteBuf
-
getDouble
public double getDouble(int p_130205_) - Specified by:
getDouble
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130163_, io.netty.buffer.ByteBuf p_130164_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130166_, io.netty.buffer.ByteBuf p_130167_, int p_130168_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130170_, io.netty.buffer.ByteBuf p_130171_, int p_130172_, int p_130173_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130191_, byte[] p_130192_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130194_, byte[] p_130195_, int p_130196_, int p_130197_) - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
- Specified by:
getBytes
in classio.netty.buffer.ByteBuf
-
getBytes
public io.netty.buffer.ByteBuf getBytes(int p_130175_, OutputStream p_130176_, int p_130177_) throws IOException - Specified by:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
getBytes
public int getBytes(int p_130187_, GatheringByteChannel p_130188_, int p_130189_) throws IOException - Specified by:
getBytes
in 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:
getBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
getCharSequence
- Specified by:
getCharSequence
in classio.netty.buffer.ByteBuf
-
setBoolean
public io.netty.buffer.ByteBuf setBoolean(int p_130362_, boolean p_130363_) - Specified by:
setBoolean
in classio.netty.buffer.ByteBuf
-
setByte
public io.netty.buffer.ByteBuf setByte(int p_130365_, int p_130366_) - Specified by:
setByte
in classio.netty.buffer.ByteBuf
-
setShort
public io.netty.buffer.ByteBuf setShort(int p_130438_, int p_130439_) - Specified by:
setShort
in classio.netty.buffer.ByteBuf
-
setShortLE
public io.netty.buffer.ByteBuf setShortLE(int p_130441_, int p_130442_) - Specified by:
setShortLE
in classio.netty.buffer.ByteBuf
-
setMedium
public io.netty.buffer.ByteBuf setMedium(int p_130432_, int p_130433_) - Specified by:
setMedium
in classio.netty.buffer.ByteBuf
-
setMediumLE
public io.netty.buffer.ByteBuf setMediumLE(int p_130435_, int p_130436_) - Specified by:
setMediumLE
in classio.netty.buffer.ByteBuf
-
setInt
public io.netty.buffer.ByteBuf setInt(int p_130420_, int p_130421_) - Specified by:
setInt
in classio.netty.buffer.ByteBuf
-
setIntLE
public io.netty.buffer.ByteBuf setIntLE(int p_130423_, int p_130424_) - Specified by:
setIntLE
in classio.netty.buffer.ByteBuf
-
setLong
public io.netty.buffer.ByteBuf setLong(int p_130426_, long p_130427_) - Specified by:
setLong
in classio.netty.buffer.ByteBuf
-
setLongLE
public io.netty.buffer.ByteBuf setLongLE(int p_130429_, long p_130430_) - Specified by:
setLongLE
in classio.netty.buffer.ByteBuf
-
setChar
public io.netty.buffer.ByteBuf setChar(int p_130404_, int p_130405_) - Specified by:
setChar
in classio.netty.buffer.ByteBuf
-
setFloat
public io.netty.buffer.ByteBuf setFloat(int p_130414_, float p_130415_) - Specified by:
setFloat
in classio.netty.buffer.ByteBuf
-
setDouble
public io.netty.buffer.ByteBuf setDouble(int p_130411_, double p_130412_) - Specified by:
setDouble
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int p_130368_, io.netty.buffer.ByteBuf p_130369_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int p_130371_, io.netty.buffer.ByteBuf p_130372_, int p_130373_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int p_130375_, io.netty.buffer.ByteBuf p_130376_, int p_130377_, int p_130378_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int p_130396_, byte[] p_130397_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
public io.netty.buffer.ByteBuf setBytes(int p_130399_, byte[] p_130400_, int p_130401_, int p_130402_) - Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
-
setBytes
- Specified by:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
setBytes
public int setBytes(int p_130392_, ScatteringByteChannel p_130393_, int p_130394_) throws IOException - Specified by:
setBytes
in 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:
setBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
setZero
public io.netty.buffer.ByteBuf setZero(int p_130444_, int p_130445_) - Specified by:
setZero
in classio.netty.buffer.ByteBuf
-
setCharSequence
- Specified by:
setCharSequence
in classio.netty.buffer.ByteBuf
-
readBoolean
public boolean readBoolean()- Specified by:
readBoolean
in classio.netty.buffer.ByteBuf
-
readByte
public byte readByte()- Specified by:
readByte
in classio.netty.buffer.ByteBuf
-
readUnsignedByte
public short readUnsignedByte()- Specified by:
readUnsignedByte
in classio.netty.buffer.ByteBuf
-
readShort
public short readShort()- Specified by:
readShort
in classio.netty.buffer.ByteBuf
-
readShortLE
public short readShortLE()- Specified by:
readShortLE
in classio.netty.buffer.ByteBuf
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShort
in classio.netty.buffer.ByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()- Specified by:
readUnsignedShortLE
in classio.netty.buffer.ByteBuf
-
readMedium
public int readMedium()- Specified by:
readMedium
in classio.netty.buffer.ByteBuf
-
readMediumLE
public int readMediumLE()- Specified by:
readMediumLE
in classio.netty.buffer.ByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMedium
in classio.netty.buffer.ByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()- Specified by:
readUnsignedMediumLE
in classio.netty.buffer.ByteBuf
-
readInt
public int readInt()- Specified by:
readInt
in classio.netty.buffer.ByteBuf
-
readIntLE
public int readIntLE()- Specified by:
readIntLE
in classio.netty.buffer.ByteBuf
-
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedInt
in classio.netty.buffer.ByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()- Specified by:
readUnsignedIntLE
in classio.netty.buffer.ByteBuf
-
readLong
public long readLong()- Specified by:
readLong
in classio.netty.buffer.ByteBuf
-
readLongLE
public long readLongLE()- Specified by:
readLongLE
in classio.netty.buffer.ByteBuf
-
readChar
public char readChar()- Specified by:
readChar
in classio.netty.buffer.ByteBuf
-
readFloat
public float readFloat()- Specified by:
readFloat
in classio.netty.buffer.ByteBuf
-
readDouble
public double readDouble()- Specified by:
readDouble
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(int p_130287_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readSlice
public io.netty.buffer.ByteBuf readSlice(int p_130332_) - Specified by:
readSlice
in classio.netty.buffer.ByteBuf
-
readRetainedSlice
public io.netty.buffer.ByteBuf readRetainedSlice(int p_130328_) - Specified by:
readRetainedSlice
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf p_130289_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf p_130291_, int p_130292_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf p_130294_, int p_130295_, int p_130296_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] p_130310_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
public io.netty.buffer.ByteBuf readBytes(byte[] p_130312_, int p_130313_, int p_130314_) - Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
readCharSequence
- Specified by:
readCharSequence
in classio.netty.buffer.ByteBuf
-
readBytes
- Specified by:
readBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
skipBytes
public io.netty.buffer.ByteBuf skipBytes(int p_130447_) - Specified by:
skipBytes
in classio.netty.buffer.ByteBuf
-
writeBoolean
public io.netty.buffer.ByteBuf writeBoolean(boolean p_130468_) - Specified by:
writeBoolean
in classio.netty.buffer.ByteBuf
-
writeByte
public io.netty.buffer.ByteBuf writeByte(int p_130470_) - Specified by:
writeByte
in classio.netty.buffer.ByteBuf
-
writeShort
public io.netty.buffer.ByteBuf writeShort(int p_130520_) - Specified by:
writeShort
in classio.netty.buffer.ByteBuf
-
writeShortLE
public io.netty.buffer.ByteBuf writeShortLE(int p_130522_) - Specified by:
writeShortLE
in classio.netty.buffer.ByteBuf
-
writeMedium
public io.netty.buffer.ByteBuf writeMedium(int p_130516_) - Specified by:
writeMedium
in classio.netty.buffer.ByteBuf
-
writeMediumLE
public io.netty.buffer.ByteBuf writeMediumLE(int p_130518_) - Specified by:
writeMediumLE
in classio.netty.buffer.ByteBuf
-
writeInt
public io.netty.buffer.ByteBuf writeInt(int p_130508_) - Specified by:
writeInt
in classio.netty.buffer.ByteBuf
-
writeIntLE
public io.netty.buffer.ByteBuf writeIntLE(int p_130510_) - Specified by:
writeIntLE
in classio.netty.buffer.ByteBuf
-
writeLong
public io.netty.buffer.ByteBuf writeLong(long p_130512_) - Specified by:
writeLong
in classio.netty.buffer.ByteBuf
-
writeLongLE
public io.netty.buffer.ByteBuf writeLongLE(long p_130514_) - Specified by:
writeLongLE
in classio.netty.buffer.ByteBuf
-
writeChar
public io.netty.buffer.ByteBuf writeChar(int p_130499_) - Specified by:
writeChar
in classio.netty.buffer.ByteBuf
-
writeFloat
public io.netty.buffer.ByteBuf writeFloat(float p_130506_) - Specified by:
writeFloat
in classio.netty.buffer.ByteBuf
-
writeDouble
public io.netty.buffer.ByteBuf writeDouble(double p_130504_) - Specified by:
writeDouble
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf p_130472_) - Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf p_130474_, int p_130475_) - Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf p_130477_, int p_130478_, int p_130479_) - Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] p_130493_) - Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
public io.netty.buffer.ByteBuf writeBytes(byte[] p_130495_, int p_130496_, int p_130497_) - Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in classio.netty.buffer.ByteBuf
- Throws:
IOException
-
writeZero
public io.netty.buffer.ByteBuf writeZero(int p_130524_) - Specified by:
writeZero
in classio.netty.buffer.ByteBuf
-
writeCharSequence
- Specified by:
writeCharSequence
in classio.netty.buffer.ByteBuf
-
indexOf
public int indexOf(int p_130244_, int p_130245_, byte p_130246_) - Specified by:
indexOf
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(byte p_130108_) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int p_130110_, byte p_130111_) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
bytesBefore
public int bytesBefore(int p_130113_, int p_130114_, byte p_130115_) - Specified by:
bytesBefore
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor p_130150_) - Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByte
public int forEachByte(int p_130146_, int p_130147_, io.netty.util.ByteProcessor p_130148_) - Specified by:
forEachByte
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor p_130156_) - Specified by:
forEachByteDesc
in classio.netty.buffer.ByteBuf
-
forEachByteDesc
public int forEachByteDesc(int p_130152_, int p_130153_, io.netty.util.ByteProcessor p_130154_) - Specified by:
forEachByteDesc
in classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy()- Specified by:
copy
in classio.netty.buffer.ByteBuf
-
copy
public io.netty.buffer.ByteBuf copy(int p_130128_, int p_130129_) - Specified by:
copy
in classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice()- Specified by:
slice
in classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice()- Specified by:
retainedSlice
in classio.netty.buffer.ByteBuf
-
slice
public io.netty.buffer.ByteBuf slice(int p_130450_, int p_130451_) - Specified by:
slice
in classio.netty.buffer.ByteBuf
-
retainedSlice
public io.netty.buffer.ByteBuf retainedSlice(int p_130359_, int p_130360_) - Specified by:
retainedSlice
in classio.netty.buffer.ByteBuf
-
duplicate
public io.netty.buffer.ByteBuf duplicate()- Specified by:
duplicate
in classio.netty.buffer.ByteBuf
-
retainedDuplicate
public io.netty.buffer.ByteBuf retainedDuplicate()- Specified by:
retainedDuplicate
in classio.netty.buffer.ByteBuf
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCount
in classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffer
- Specified by:
nioBuffer
in classio.netty.buffer.ByteBuf
-
internalNioBuffer
- Specified by:
internalNioBuffer
in classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
nioBuffers
- Specified by:
nioBuffers
in classio.netty.buffer.ByteBuf
-
hasArray
public boolean hasArray()- Specified by:
hasArray
in classio.netty.buffer.ByteBuf
-
array
public byte[] array()- Specified by:
array
in classio.netty.buffer.ByteBuf
-
arrayOffset
public int arrayOffset()- Specified by:
arrayOffset
in classio.netty.buffer.ByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddress
in classio.netty.buffer.ByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddress
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
hashCode
public int hashCode()- Specified by:
hashCode
in classio.netty.buffer.ByteBuf
-
equals
- Specified by:
equals
in classio.netty.buffer.ByteBuf
-
compareTo
public int compareTo(io.netty.buffer.ByteBuf p_130123_) - Specified by:
compareTo
in interfaceComparable<io.netty.buffer.ByteBuf>
- Specified by:
compareTo
in classio.netty.buffer.ByteBuf
-
toString
- Specified by:
toString
in classio.netty.buffer.ByteBuf
-
retain
public io.netty.buffer.ByteBuf retain(int p_130353_) - Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
retain
public io.netty.buffer.ByteBuf retain()- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Specified by:
retain
in classio.netty.buffer.ByteBuf
-
touch
public io.netty.buffer.ByteBuf touch()- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
touch
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Specified by:
touch
in classio.netty.buffer.ByteBuf
-
refCnt
public int refCnt()- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int p_130347_) - Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-