public abstract class BCStatement extends java.lang.Object implements IStatement
| Modifier and Type | Field and Description |
|---|---|
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 standardised tags if needed,
otherwise just pass a single string.
|
| Modifier and Type | Method and Description |
|---|---|
IStatementParameter |
createParameter(int index)
Create parameters for the statement.
|
protected static <P extends IStatementParameter> |
getParam(int index,
IStatementParameter[] params,
P _default) |
IStatement[] |
getPossible()
This returns a group of related statements.
|
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.
|
IStatement |
rotateLeft()
This returns the statement after a left rotation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateParameter, isPossibleOrderedgetDescription, getSprite, getTooltipconvertTopublic BCStatement(java.lang.String... uniqueTag)
uniqueTag - public java.lang.String getUniqueTag()
IGuiSlotgetUniqueTag in interface IGuiSlotpublic int maxParameters()
IStatementmaxParameters in interface IStatementpublic int minParameters()
IStatementminParameters in interface IStatementpublic IStatement rotateLeft()
IStatementrotateLeft in interface IStatementpublic IStatement[] getPossible()
IStatementgetPossible in interface IStatementpublic IStatementParameter createParameter(int index)
IStatementcreateParameter in interface IStatementprotected static <P extends IStatementParameter> P getParam(int index, IStatementParameter[] params, P _default)