public abstract class BCStatement extends java.lang.Object implements IStatement
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.util.IIcon |
icon |
protected java.lang.String |
uniqueTag |
| Constructor and Description |
|---|
BCStatement(java.lang.String... uniqueTag)
UniqueTag accepts multiple possible tags, use this feature to migrate to
more standardized tags if needed, otherwise just pass a single string.
|
| Modifier and Type | Method and Description |
|---|---|
IStatementParameter |
createParameter(int index)
Create parameters for the statement.
|
java.lang.String |
getDescription()
Return the statement description in the UI
|
net.minecraft.util.IIcon |
getIcon() |
java.lang.String |
getUniqueTag()
Every statement needs a unique tag, it should be in the format of
"<modid>:<name>.
|
int |
maxParameters()
Return the maximum number of parameter this statement can have, 0 if none.
|
int |
minParameters()
Return the minimum number of parameter this statement can have, 0 if none.
|
void |
registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
IStatement |
rotateLeft()
This returns the statement after a left rotation.
|
protected final java.lang.String uniqueTag
protected net.minecraft.util.IIcon icon
public BCStatement(java.lang.String... uniqueTag)
uniqueTag - public java.lang.String getUniqueTag()
IStatementgetUniqueTag in interface IStatementpublic net.minecraft.util.IIcon getIcon()
getIcon in interface IStatementpublic void registerIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerIcons in interface IStatementpublic int maxParameters()
IStatementmaxParameters in interface IStatementpublic int minParameters()
IStatementminParameters in interface IStatementpublic java.lang.String getDescription()
IStatementgetDescription in interface IStatementpublic IStatement rotateLeft()
IStatementrotateLeft in interface IStatementpublic IStatementParameter createParameter(int index)
IStatementcreateParameter in interface IStatement