Uses of Class
alexiil.mc.lib.net.NetByteBuf
Package | Description |
---|---|
alexiil.mc.lib.net |
LibNetworkStack's base library.
|
alexiil.mc.lib.net.impl |
LibNetworkStack's minecraft-specific library.
|
-
Uses of NetByteBuf in alexiil.mc.lib.net
Subclasses of NetByteBuf in alexiil.mc.lib.net Modifier and Type Class Description class
CheckingNetByteBuf
Debug variant ofNetByteBuf
that writes the method calls to ensure that it's a perfect mirror.Fields in alexiil.mc.lib.net declared as NetByteBuf Modifier and Type Field Description static NetByteBuf
NetByteBuf. EMPTY_BUFFER
Methods in alexiil.mc.lib.net that return NetByteBuf Modifier and Type Method Description static NetByteBuf
NetByteBuf. asNetByteBuf(io.netty.buffer.ByteBuf buf)
Returns the givenByteBuf
asNetByteBuf
.static NetByteBuf
NetByteBuf. buffer()
static NetByteBuf
NetByteBuf. buffer(int initialCapacity)
NetByteBuf
NetByteBuf. clear()
NetByteBuf
NetByteBuf. copy()
NetByteBuf
NetByteBuf. markReaderIndex()
NetByteBuf
NetByteBuf. readBytes(int length)
NetByteBuf
NetByteBuf. resetReaderIndex()
NetByteBuf
NetByteBuf. resetReaderIndex(NetByteBuf.SavedReaderIndex index)
NetByteBuf
NetByteBuf. writeBlockPos(net.minecraft.util.math.BlockPos pos)
NetByteBuf
NetByteBuf. writeBoolean(boolean flag)
Writes a single boolean out to some position in this buffer.NetByteBuf
NetByteBuf. writeEnumConstant(java.lang.Enum<?> value)
NetByteBuf
NetByteBuf. writeFixedBits(int value, int length)
Writes a fixed number of bits out to the stream.NetByteBuf
NetByteBuf. writeIdentifier(net.minecraft.util.Identifier id)
NetByteBuf
NetByteBuf. writeVarInt(int ival)
Writes out an integer using a variable number of bytes.NetByteBuf
NetByteBuf. writeVarLong(long lval)
Writes out a long integer using a variable number of bytes.NetByteBuf
NetByteBuf. writeVarUnsignedInt(int ival)
Exposes the vanilla method for writing out an unsigned integer using a variable number of bytes.NetByteBuf
NetByteBuf. writeVarUnsignedLong(long lval)
Exposes the vanilla method for writing out an unsigned long integer using a variable number of bytes.Methods in alexiil.mc.lib.net with parameters of type NetByteBuf Modifier and Type Method Description static void
InternalMsgUtil. onReceive(ActiveConnection connection, NetByteBuf buffer)
void
ActiveConnection. onReceiveRawData(NetByteBuf data)
void
BufferedConnection. onReceiveRawData(NetByteBuf data)
E
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.T
NetKeyMapper.ToString. read(NetByteBuf buffer, IMsgReadCtx ctx)
T
NetObjectCache.IEntrySerialiser. read(ActiveConnection connection, NetByteBuf buffer)
T
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 java.lang.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, java.lang.String string)
Constructors in alexiil.mc.lib.net with parameters of type NetByteBuf Constructor Description CheckingNetByteBuf(NetByteBuf wrapped, NetByteBuf typeData)
-
Uses of NetByteBuf in alexiil.mc.lib.net.impl
Methods in alexiil.mc.lib.net.impl with parameters of type NetByteBuf Modifier and Type Method Description void
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)