public class StatementParameterRedstoneGateSideOnly extends java.lang.Object implements IStatementParameter
| Modifier and Type | Field and Description |
|---|---|
boolean |
isOn |
| Constructor and Description |
|---|
StatementParameterRedstoneGateSideOnly() |
| 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) |
public StatementParameterRedstoneGateSideOnly()
public net.minecraft.item.ItemStack getItemStack()
getItemStack in interface IStatementParameterpublic net.minecraft.util.IIcon getIcon()
getIcon in interface IStatementParameterpublic void onClick(IStatementContainer source, IStatement stmt, net.minecraft.item.ItemStack stack, StatementMouseClick mouse)
onClick in interface IStatementParameterpublic void writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in interface IStatementParameterpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound compound)
readFromNBT in interface IStatementParameterpublic java.lang.String getDescription()
IStatementParametergetDescription in interface IStatementParameterpublic java.lang.String getUniqueTag()
IStatementParametergetUniqueTag in interface IStatementParameterpublic void registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
IStatementParameterregisterIcons in interface IStatementParameterpublic IStatementParameter rotateLeft()
IStatementParameterrotateLeft in interface IStatementParameter