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 |
convertToType(java.lang.Object value) |
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 convertToType(java.lang.Object value)
convertToType in class StatementType<IStatementParameter>public IStatementParameter readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
StatementTypeStatementWrapper 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
StatementTypeStatementWrapper 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.IOExceptionpublic void writeToBuffer(PacketBufferBC buffer, IStatementParameter slot)
writeToBuffer in class StatementType<IStatementParameter>