Uses of Class
alexiil.mc.lib.net.NetByteBuf
Packages that use NetByteBuf
Package
Description
LibNetworkStack's base library.
LibNetworkStack's minecraft-specific library.
-
Uses of NetByteBuf in alexiil.mc.lib.net
Subclasses of NetByteBuf in alexiil.mc.lib.netModifier and TypeClassDescriptionclassDebug variant ofNetByteBufthat writes the method calls to ensure that it's a perfect mirror.Fields in alexiil.mc.lib.net declared as NetByteBufMethods in alexiil.mc.lib.net that return NetByteBufModifier and TypeMethodDescriptionActiveConnection.allocBuffer()ActiveConnection.allocBuffer(int initialCapacity) static NetByteBufNetByteBuf.asNetByteBuf(io.netty.buffer.ByteBuf buf) Returns the givenByteBufasNetByteBuf.static NetByteBufNetByteBuf.asNetByteBuf(io.netty.buffer.ByteBuf buf, boolean passthrough) Returns the givenByteBufasNetByteBuf, but with passthrough mode enabled.static NetByteBufNetByteBuf.asPassthroughNetByteBuf(io.netty.buffer.ByteBuf buf) Returns the givenByteBufasNetByteBuf, but with passthrough mode enabled.static NetByteBufNetByteBuf.buffer()static NetByteBufNetByteBuf.buffer(boolean passthrough) static NetByteBufNetByteBuf.buffer(int initialCapacity) static NetByteBufNetByteBuf.buffer(int initialCapacity, boolean passthrough) 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.Methods in alexiil.mc.lib.net with parameters of type NetByteBufModifier and TypeMethodDescriptionstatic voidInternalMsgUtil.onReceive(ActiveConnection connection, NetByteBuf buffer) voidActiveConnection.onReceiveRawData(NetByteBuf data) voidBufferedConnection.onReceiveRawData(NetByteBuf data) NetKeyMapper.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.NetKeyMapper.ToString.read(NetByteBuf buffer, IMsgReadCtx ctx) NetObjectCache.IEntrySerialiser.read(ActiveConnection connection, NetByteBuf buffer) NetObjectCacheSimple.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 final 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 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 final 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 final 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, String string) Constructors in alexiil.mc.lib.net with parameters of type NetByteBuf -
Uses of NetByteBuf in alexiil.mc.lib.net.impl
Methods in alexiil.mc.lib.net.impl with parameters of type NetByteBufModifier and TypeMethodDescriptionfinal 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)