Uses of Class
alexiil.mc.lib.net.NetByteBuf
Package
Description
LibNetworkStack's base library.
LibNetworkStack's minecraft-specific library.
-
Uses of NetByteBuf in alexiil.mc.lib.net
Modifier and TypeClassDescriptionclass
Debug variant ofNetByteBuf
that writes the method calls to ensure that it's a perfect mirror.Modifier and TypeMethodDescriptionstatic NetByteBuf
NetByteBuf.asNetByteBuf(io.netty.buffer.ByteBuf buf)
Returns the givenByteBuf
asNetByteBuf
.static NetByteBuf
NetByteBuf.buffer()
static NetByteBuf
NetByteBuf.buffer(int initialCapacity)
NetByteBuf.clear()
NetByteBuf.copy()
NetByteBuf.markReaderIndex()
NetByteBuf.readBytes(int length)
NetByteBuf.resetReaderIndex()
NetByteBuf.resetReaderIndex(NetByteBuf.SavedReaderIndex index)
NetByteBuf.writeBlockPos(net.minecraft.util.math.BlockPos pos)
NetByteBuf.writeBoolean(boolean flag)
Writes a single boolean out to some position in this buffer.NetByteBuf.writeEnumConstant(Enum<?> value)
NetByteBuf.writeFixedBits(int value, int length)
Writes a fixed number of bits out to the stream.NetByteBuf.writeIdentifier(net.minecraft.util.Identifier id)
NetByteBuf.writeVarInt(int ival)
Writes out an integer using a variable number of bytes.NetByteBuf.writeVarLong(long lval)
Writes out a long integer using a variable number of bytes.NetByteBuf.writeVarUnsignedInt(int ival)
Exposes the vanilla method for writing out an unsigned integer using a variable number of bytes.NetByteBuf.writeVarUnsignedLong(long lval)
Exposes the vanilla method for writing out an unsigned long integer using a variable number of bytes.Modifier and TypeMethodDescriptionstatic void
InternalMsgUtil.onReceive(ActiveConnection connection, NetByteBuf buffer)
void
ActiveConnection.onReceiveRawData(NetByteBuf data)
void
BufferedConnection.onReceiveRawData(NetByteBuf data)
NetKeyMapper.OfEnum.read(NetByteBuf buffer, IMsgReadCtx ctx)
abstract T
NetKeyMapper.read(NetByteBuf buffer, IMsgReadCtx ctx)
Reads the value for the key from the buffer, optionally using the parent keys.NetKeyMapper.ToString.read(NetByteBuf buffer, IMsgReadCtx ctx)
NetObjectCache.IEntrySerialiser.read(ActiveConnection connection, NetByteBuf buffer)
NetObjectCacheSimple.read(NetByteBuf buffer, IMsgReadCtx ctx)
protected T
DynamicNetId.readContext(NetByteBuf buffer, IMsgReadCtx ctx)
protected C
ParentDynamicNetId.readContext(NetByteBuf buffer, IMsgReadCtx ctx, P parentValue)
protected Sub
ParentNetIdCast.readContext(NetByteBuf buffer, IMsgReadCtx ctx, Super parentValue)
protected T
ParentNetIdDuel.readContext(NetByteBuf buffer, IMsgReadCtx ctx)
protected abstract T
ParentNetIdDuel.readContext(NetByteBuf buffer, IMsgReadCtx ctx, Parent parentValue)
protected T
ParentNetIdDuelDirect.readContext(NetByteBuf buffer, IMsgReadCtx ctx, T parentValue)
protected T
ParentNetIdExtractor.readContext(NetByteBuf buffer, IMsgReadCtx ctx, Parent parentValue)
protected abstract T
ParentNetIdSingle.readContext(NetByteBuf buffer, IMsgReadCtx ctx)
static String
MsgUtil.readUTF(NetByteBuf buffer)
void
NetIdData.IMsgDataReceiver.receive(NetByteBuf buffer, IMsgReadCtx ctx)
void
NetIdDataK.IMsgDataReceiverK.receive(T obj, NetByteBuf buffer, IMsgReadCtx ctx)
void
NetIdDataK.receive(NetByteBuf buffer, IMsgReadCtx ctx, T parentValue)
protected void
NetIdSignalK.receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj)
protected abstract void
NetIdTyped.receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj)
static void
InternalMsgUtil.send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload)
Sends a packet with it's priority set to it's default priority.static void
InternalMsgUtil.send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload, int priority)
Sends a packet.abstract void
SingleConnection.send(NetByteBuf packet)
protected abstract void
ActiveConnection.sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)
protected void
BufferedConnection.sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)
protected abstract void
BufferedConnection.sendRawData0(NetByteBuf data)
Sends some raw data.void
NetIdData.IMsgDataWriter.write(NetByteBuf buffer, IMsgWriteCtx ctx)
void
NetIdDataK.IMsgDataWriterK.write(T obj, NetByteBuf buffer, IMsgWriteCtx ctx)
void
NetKeyMapper.OfEnum.write(NetByteBuf buffer, IMsgWriteCtx ctx, E value)
void
NetKeyMapper.ToString.write(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
abstract void
NetKeyMapper.write(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
void
NetObjectCache.IEntrySerialiser.write(T obj, ActiveConnection connection, NetByteBuf buffer)
void
NetObjectCacheSimple.write(T obj, NetByteBuf buffer, IMsgWriteCtx ctx)
protected void
DynamicNetId.writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
protected void
ParentNetIdDuel.writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
protected abstract void
ParentNetIdSingle.writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
protected void
ParentDynamicNetId.writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, C value)
protected void
ParentNetIdCast.writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, Sub value)
protected abstract void
ParentNetIdDuel.writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
protected void
ParentNetIdDuelDirect.writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
protected void
ParentNetIdExtractor.writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)
static void
MsgUtil.writeUTF(NetByteBuf buffer, String string)
-
Uses of NetByteBuf in alexiil.mc.lib.net.impl
Modifier and TypeMethodDescriptionvoid
ActiveMinecraftConnection.sendRawData0(NetByteBuf data)
protected net.minecraft.network.Packet<?>
ActiveClientConnection.toCompactPacket(int receiverId, NetByteBuf data)
protected abstract net.minecraft.network.Packet<?>
ActiveMinecraftConnection.toCompactPacket(int receiverId, NetByteBuf data)
protected net.minecraft.network.Packet<?>
ActiveServerConnection.toCompactPacket(int receiverId, NetByteBuf data)
protected net.minecraft.network.Packet<?>
ActiveClientConnection.toNormalPacket(NetByteBuf data)
protected abstract net.minecraft.network.Packet<?>
ActiveMinecraftConnection.toNormalPacket(NetByteBuf data)
protected net.minecraft.network.Packet<?>
ActiveServerConnection.toNormalPacket(NetByteBuf data)