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, wait
createParameter, isPossibleOrdered
getDescription, getSprite, getTooltip
public BCStatement(java.lang.String... uniqueTag)
uniqueTag
- public java.lang.String getUniqueTag()
IGuiSlot
getUniqueTag
in interface IGuiSlot
public int maxParameters()
IStatement
maxParameters
in interface IStatement
public int minParameters()
IStatement
minParameters
in interface IStatement
public IStatement rotateLeft()
IStatement
rotateLeft
in interface IStatement
public IStatement[] getPossible()
IStatement
getPossible
in interface IStatement
public IStatementParameter createParameter(int index)
IStatement
createParameter
in interface IStatement
protected static <P extends IStatementParameter> P getParam(int index, IStatementParameter[] params, P _default)