public final class NetworkUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readByteArray(io.netty.buffer.ByteBuf stream) |
static net.minecraft.nbt.NBTTagCompound |
readNBT(io.netty.buffer.ByteBuf data) |
static net.minecraft.item.ItemStack |
readStack(io.netty.buffer.ByteBuf data) |
static java.lang.String |
readUTF(io.netty.buffer.ByteBuf data) |
static void |
writeByteArray(io.netty.buffer.ByteBuf stream,
byte[] data) |
static void |
writeNBT(io.netty.buffer.ByteBuf data,
net.minecraft.nbt.NBTTagCompound nbt) |
static void |
writeStack(io.netty.buffer.ByteBuf data,
net.minecraft.item.ItemStack stack) |
static void |
writeUTF(io.netty.buffer.ByteBuf data,
java.lang.String str) |
public static void writeUTF(io.netty.buffer.ByteBuf data,
java.lang.String str)
public static java.lang.String readUTF(io.netty.buffer.ByteBuf data)
public static void writeNBT(io.netty.buffer.ByteBuf data,
net.minecraft.nbt.NBTTagCompound nbt)
public static net.minecraft.nbt.NBTTagCompound readNBT(io.netty.buffer.ByteBuf data)
public static void writeStack(io.netty.buffer.ByteBuf data,
net.minecraft.item.ItemStack stack)
public static net.minecraft.item.ItemStack readStack(io.netty.buffer.ByteBuf data)
public static void writeByteArray(io.netty.buffer.ByteBuf stream,
byte[] data)
public static byte[] readByteArray(io.netty.buffer.ByteBuf stream)