public class NbtSquisher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.function.Function<io.netty.buffer.ByteBuf,net.minecraft.network.PacketBuffer> |
debugBuffer
Used by testing classes to replace ByteBuf instances with PrintingByteBuf -- but we don't have that
class in main because it makes checkstyle complain.
|
static net.minecraft.profiler.Profiler |
profiler |
Constructor and Description |
---|
NbtSquisher() |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.nbt.NBTTagCompound |
expand(byte[] bytes) |
static net.minecraft.nbt.NBTTagCompound |
expand(io.netty.buffer.ByteBuf buf) |
static net.minecraft.nbt.NBTTagCompound |
expand(java.io.InputStream stream) |
static byte[] |
squish(net.minecraft.nbt.NBTTagCompound nbt,
int type) |
static void |
squish(net.minecraft.nbt.NBTTagCompound nbt,
int type,
io.netty.buffer.ByteBuf buf) |
static void |
squish(net.minecraft.nbt.NBTTagCompound nbt,
int type,
java.io.OutputStream stream) |
static void |
squishBuildCraftV1(net.minecraft.nbt.NBTTagCompound nbt,
java.io.OutputStream to) |
static void |
squishBuildCraftV1Uncompressed(net.minecraft.nbt.NBTTagCompound nbt,
java.io.DataOutput to) |
static void |
squishVanilla(net.minecraft.nbt.NBTTagCompound nbt,
java.io.OutputStream to) |
static void |
squishVanillaUncompressed(net.minecraft.nbt.NBTTagCompound nbt,
java.io.DataOutput to) |
public static final net.minecraft.profiler.Profiler profiler
public static java.util.function.Function<io.netty.buffer.ByteBuf,net.minecraft.network.PacketBuffer> debugBuffer
public static byte[] squish(net.minecraft.nbt.NBTTagCompound nbt, int type)
public static void squish(net.minecraft.nbt.NBTTagCompound nbt, int type, io.netty.buffer.ByteBuf buf)
public static void squish(net.minecraft.nbt.NBTTagCompound nbt, int type, java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public static void squishVanilla(net.minecraft.nbt.NBTTagCompound nbt, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static void squishVanillaUncompressed(net.minecraft.nbt.NBTTagCompound nbt, java.io.DataOutput to) throws java.io.IOException
java.io.IOException
public static void squishBuildCraftV1(net.minecraft.nbt.NBTTagCompound nbt, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static void squishBuildCraftV1Uncompressed(net.minecraft.nbt.NBTTagCompound nbt, java.io.DataOutput to) throws java.io.IOException
java.io.IOException
public static net.minecraft.nbt.NBTTagCompound expand(byte[] bytes) throws java.io.IOException
java.io.IOException
public static net.minecraft.nbt.NBTTagCompound expand(io.netty.buffer.ByteBuf buf) throws java.io.IOException
java.io.IOException
public static net.minecraft.nbt.NBTTagCompound expand(java.io.InputStream stream) throws java.io.IOException
java.io.IOException