Package net.minecraft.network
Class VarInt
java.lang.Object
net.minecraft.network.VarInt
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getByteSize
(int p_298763_) static boolean
hasContinuationBit
(byte p_299197_) static int
read
(io.netty.buffer.ByteBuf p_298603_) static io.netty.buffer.ByteBuf
write
(io.netty.buffer.ByteBuf p_300403_, int p_297833_)
-
Field Details
-
MAX_VARINT_SIZE
private static final int MAX_VARINT_SIZE- See Also:
-
DATA_BITS_MASK
private static final int DATA_BITS_MASK- See Also:
-
CONTINUATION_BIT_MASK
private static final int CONTINUATION_BIT_MASK- See Also:
-
DATA_BITS_PER_BYTE
private static final int DATA_BITS_PER_BYTE- See Also:
-
-
Constructor Details
-
VarInt
public VarInt()
-
-
Method Details
-
getByteSize
public static int getByteSize(int p_298763_) -
hasContinuationBit
public static boolean hasContinuationBit(byte p_299197_) -
read
public static int read(io.netty.buffer.ByteBuf p_298603_) -
write
public static io.netty.buffer.ByteBuf write(io.netty.buffer.ByteBuf p_300403_, int p_297833_)
-