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