public class ActionType extends StatementType<ActionWrapper>
Modifier and Type | Field and Description |
---|---|
static ActionType |
INSTANCE |
clazz, defaultStatement
Modifier and Type | Method and Description |
---|---|
ActionWrapper |
convertToType(java.lang.Object value) |
ActionWrapper |
readFromBuffer(PacketBufferBC buffer)
Reads a
StatementWrapper from the given PacketBufferBC . |
ActionWrapper |
readFromNbt(net.minecraft.nbt.NBTTagCompound nbt)
Reads a
StatementWrapper from the given NBTTagCompound . |
void |
writeToBuffer(PacketBufferBC buffer,
ActionWrapper slot) |
net.minecraft.nbt.NBTTagCompound |
writeToNbt(ActionWrapper slot) |
public static final ActionType INSTANCE
public ActionWrapper convertToType(java.lang.Object value)
convertToType
in class StatementType<ActionWrapper>
public ActionWrapper 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<ActionWrapper>
public net.minecraft.nbt.NBTTagCompound writeToNbt(ActionWrapper slot)
writeToNbt
in class StatementType<ActionWrapper>
public ActionWrapper 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<ActionWrapper>
java.io.IOException
public void writeToBuffer(PacketBufferBC buffer, ActionWrapper slot)
writeToBuffer
in class StatementType<ActionWrapper>