public class ActionParameterSignal extends java.lang.Object implements IStatementParameter
| Constructor and Description |
|---|
ActionParameterSignal() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
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 nbt) |
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 nbt) |
public PipeWire color
public 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 nbt)
writeToNBT in interface IStatementParameterpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in interface IStatementParameterpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic 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 IStatementParameterpublic net.minecraft.item.ItemStack getItemStack()
getItemStack in interface IStatementParameter