public interface IStatementParameter
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Return the parameter description in the UI
|
net.minecraft.util.IIcon |
getIcon() |
net.minecraft.item.ItemStack |
getItemStack() |
java.lang.String |
getUniqueTag()
Every parameter needs a unique tag, it should be in the format of
"<modi>:<name>".
|
void |
onClick(IStatementContainer source,
IStatement stmt,
net.minecraft.item.ItemStack stack,
StatementMouseClick mouse) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound compound) |
void |
registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
Something that is initially unintuitive: you HAVE to
keep your icons as static variables, due to the fact
that every IStatementParameter is instantiated upon creation,
in opposition to IStatements which are singletons (due to the
fact that they, unlike Parameters, store no additional data)
|
IStatementParameter |
rotateLeft()
This returns the parameter after a left rotation.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
java.lang.String getUniqueTag()
net.minecraft.util.IIcon getIcon()
net.minecraft.item.ItemStack getItemStack()
void registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
java.lang.String getDescription()
void onClick(IStatementContainer source, IStatement stmt, net.minecraft.item.ItemStack stack, StatementMouseClick mouse)
void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
IStatementParameter rotateLeft()