public abstract class StatementWrapper extends java.lang.Object implements IStatement, java.lang.Comparable<StatementWrapper>
| Modifier and Type | Field and Description |
|---|---|
IStatement |
delegate |
EnumPipePart |
sourcePart
Used to determine the background colour of triggers and actions.
|
| Constructor and Description |
|---|
StatementWrapper(IStatement delegate,
EnumPipePart sourcePart) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StatementWrapper o) |
<T> T |
convertTo(java.lang.Class<T> clazz)
Attempts to convert this object to the given class.
|
IStatementParameter |
createParameter(int index)
Create parameters for the statement.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Return the description in the UI.
|
net.minecraft.tileentity.TileEntity |
getNeighbourTile(IStatementContainer source) |
abstract StatementWrapper[] |
getPossible()
This returns a group of related statements.
|
ISprite |
getSprite() |
java.util.List<java.lang.String> |
getTooltip() |
java.lang.String |
getUniqueTag()
Every statement needs a unique tag, it should be in the format of "<modid>:<name>".
|
int |
hashCode() |
boolean |
isPossibleOrdered() |
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, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcreateParameterpublic final IStatement delegate
public final EnumPipePart sourcePart
public StatementWrapper(IStatement delegate, EnumPipePart sourcePart)
public java.lang.String getUniqueTag()
IGuiSlotgetUniqueTag in interface IGuiSlotIGuiSlot.getUniqueTag()public int maxParameters()
IStatementmaxParameters in interface IStatementIStatement.maxParameters()public int minParameters()
IStatementminParameters in interface IStatementIStatement.minParameters()public java.lang.String getDescription()
IGuiSlotIGuiSlot.getTooltip(). (As such this might return null or throw an exception)getDescription in interface IGuiSlotIGuiSlot.getDescription()public IStatementParameter createParameter(int index)
IStatementcreateParameter in interface IStatementIStatement.createParameter(int)public IStatement rotateLeft()
IStatementrotateLeft in interface IStatementIStatement.rotateLeft()public ISprite getSprite()
getSprite in interface IGuiSlotIGuiSlot.getSprite()public net.minecraft.tileentity.TileEntity getNeighbourTile(IStatementContainer source)
public abstract StatementWrapper[] getPossible()
IStatementgetPossible in interface IStatementpublic boolean isPossibleOrdered()
isPossibleOrdered in interface IStatementpublic java.util.List<java.lang.String> getTooltip()
getTooltip in interface IGuiSlotpublic <T> T convertTo(java.lang.Class<T> clazz)
IConvertableconvertTo in interface IConvertablepublic int compareTo(StatementWrapper o)
compareTo in interface java.lang.Comparable<StatementWrapper>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object