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 classCheckingNetByteBufDebug variant ofNetByteBufthat 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 NetByteBufNetByteBuf. EMPTY_BUFFERMethods in alexiil.mc.lib.net that return NetByteBuf Modifier and Type Method Description static NetByteBufNetByteBuf. asNetByteBuf(io.netty.buffer.ByteBuf buf)Returns the givenByteBufasNetByteBuf.static NetByteBufNetByteBuf. buffer()static NetByteBufNetByteBuf. buffer(int initialCapacity)NetByteBufNetByteBuf. clear()NetByteBufNetByteBuf. copy()NetByteBufNetByteBuf. markReaderIndex()NetByteBufNetByteBuf. readBytes(int length)NetByteBufNetByteBuf. resetReaderIndex()NetByteBufNetByteBuf. resetReaderIndex(NetByteBuf.SavedReaderIndex index)NetByteBufNetByteBuf. writeBlockPos(net.minecraft.util.math.BlockPos pos)NetByteBufNetByteBuf. writeBoolean(boolean flag)Writes a single boolean out to some position in this buffer.NetByteBufNetByteBuf. writeEnumConstant(java.lang.Enum<?> value)NetByteBufNetByteBuf. writeFixedBits(int value, int length)Writes a fixed number of bits out to the stream.NetByteBufNetByteBuf. writeIdentifier(net.minecraft.util.Identifier id)NetByteBufNetByteBuf. writeVarInt(int ival)Writes out an integer using a variable number of bytes.NetByteBufNetByteBuf. writeVarLong(long lval)Writes out a long integer using a variable number of bytes.NetByteBufNetByteBuf. writeVarUnsignedInt(int ival)Exposes the vanilla method for writing out an unsigned integer using a variable number of bytes.NetByteBufNetByteBuf. 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 voidInternalMsgUtil. onReceive(ActiveConnection connection, NetByteBuf buffer)voidActiveConnection. onReceiveRawData(NetByteBuf data)voidBufferedConnection. onReceiveRawData(NetByteBuf data)ENetKeyMapper.OfEnum. read(NetByteBuf buffer, IMsgReadCtx ctx)abstract TNetKeyMapper. read(NetByteBuf buffer, IMsgReadCtx ctx)Reads the value for the key from the buffer, optionally using the parent keys.TNetKeyMapper.ToString. read(NetByteBuf buffer, IMsgReadCtx ctx)TNetObjectCache.IEntrySerialiser. read(ActiveConnection connection, NetByteBuf buffer)TNetObjectCacheSimple. read(NetByteBuf buffer, IMsgReadCtx ctx)protected TDynamicNetId. readContext(NetByteBuf buffer, IMsgReadCtx ctx)protected CParentDynamicNetId. readContext(NetByteBuf buffer, IMsgReadCtx ctx, P parentValue)protected SubParentNetIdCast. readContext(NetByteBuf buffer, IMsgReadCtx ctx, Super parentValue)protected TParentNetIdDuel. readContext(NetByteBuf buffer, IMsgReadCtx ctx)protected abstract TParentNetIdDuel. readContext(NetByteBuf buffer, IMsgReadCtx ctx, Parent parentValue)protected TParentNetIdDuelDirect. readContext(NetByteBuf buffer, IMsgReadCtx ctx, T parentValue)protected TParentNetIdExtractor. readContext(NetByteBuf buffer, IMsgReadCtx ctx, Parent parentValue)protected abstract TParentNetIdSingle. readContext(NetByteBuf buffer, IMsgReadCtx ctx)static java.lang.StringMsgUtil. readUTF(NetByteBuf buffer)voidNetIdData.IMsgDataReceiver. receive(NetByteBuf buffer, IMsgReadCtx ctx)voidNetIdDataK.IMsgDataReceiverK. receive(T obj, NetByteBuf buffer, IMsgReadCtx ctx)voidNetIdDataK. receive(NetByteBuf buffer, IMsgReadCtx ctx, T parentValue)protected voidNetIdSignalK. receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj)protected abstract voidNetIdTyped. receive(NetByteBuf buffer, IMsgReadCtx ctx, T obj)static voidInternalMsgUtil. 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 voidInternalMsgUtil. send(ActiveConnection connection, NetIdBase netId, alexiil.mc.lib.net.NetIdPath path, NetByteBuf payload, int priority)Sends a packet.abstract voidSingleConnection. send(NetByteBuf packet)protected abstract voidActiveConnection. sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)protected voidBufferedConnection. sendPacket(NetByteBuf data, int packetId, NetIdBase netId, int priority)protected abstract voidBufferedConnection. sendRawData0(NetByteBuf data)Sends some raw data.voidNetIdData.IMsgDataWriter. write(NetByteBuf buffer, IMsgWriteCtx ctx)voidNetIdDataK.IMsgDataWriterK. write(T obj, NetByteBuf buffer, IMsgWriteCtx ctx)voidNetKeyMapper.OfEnum. write(NetByteBuf buffer, IMsgWriteCtx ctx, E value)voidNetKeyMapper.ToString. write(NetByteBuf buffer, IMsgWriteCtx ctx, T value)abstract voidNetKeyMapper. write(NetByteBuf buffer, IMsgWriteCtx ctx, T value)voidNetObjectCache.IEntrySerialiser. write(T obj, ActiveConnection connection, NetByteBuf buffer)voidNetObjectCacheSimple. write(T obj, NetByteBuf buffer, IMsgWriteCtx ctx)protected voidDynamicNetId. writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)protected voidParentNetIdDuel. writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)protected abstract voidParentNetIdSingle. writeContext(NetByteBuf buffer, IMsgWriteCtx ctx, T value)protected voidParentDynamicNetId. writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, C value)protected voidParentNetIdCast. writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, Sub value)protected abstract voidParentNetIdDuel. writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)protected voidParentNetIdDuelDirect. writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)protected voidParentNetIdExtractor. writeContext0(NetByteBuf buffer, IMsgWriteCtx ctx, T value)static voidMsgUtil. 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 voidActiveMinecraftConnection. 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)