public class StatementTypeParam extends StatementType<IStatementParameter>
Modifier and Type | Field and Description |
---|---|
static StatementTypeParam |
INSTANCE |
clazz, defaultStatement
Constructor and Description |
---|
StatementTypeParam() |
Modifier and Type | Method and Description |
---|---|
IStatementParameter |
readFromBuffer(PacketBufferBC buffer)
Reads a
StatementWrapper from the given PacketBufferBC . |
IStatementParameter |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
Reads a
StatementWrapper from the given NBTTagCompound . |
void |
writeToBuffer(PacketBufferBC buffer,
IStatementParameter slot) |
net.minecraft.nbt.NBTTagCompound |
writeToNbt(IStatementParameter slot) |
public static final StatementTypeParam INSTANCE
public IStatementParameter readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
StatementType
StatementWrapper
from the given NBTTagCompound
. The tag compound will be equal to
the one returned by StatementType.writeToNbt(IGuiSlot)
readFromNbt
in class StatementType<IStatementParameter>
public net.minecraft.nbt.NBTTagCompound writeToNbt(IStatementParameter slot)
writeToNbt
in class StatementType<IStatementParameter>
public IStatementParameter readFromBuffer(PacketBufferBC buffer) throws java.io.IOException
StatementType
StatementWrapper
from the given PacketBufferBC
. The buffer will return the data
written to a different buffer by StatementType.writeToBuffer(PacketBufferBC, IGuiSlot)
.readFromBuffer
in class StatementType<IStatementParameter>
java.io.IOException
public void writeToBuffer(PacketBufferBC buffer, IStatementParameter slot)
writeToBuffer
in class StatementType<IStatementParameter>