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) |
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, wait
createParameter
public final IStatement delegate
public final EnumPipePart sourcePart
public StatementWrapper(IStatement delegate, EnumPipePart sourcePart)
public java.lang.String getUniqueTag()
IGuiSlot
getUniqueTag
in interface IGuiSlot
IGuiSlot.getUniqueTag()
public int maxParameters()
IStatement
maxParameters
in interface IStatement
IStatement.maxParameters()
public int minParameters()
IStatement
minParameters
in interface IStatement
IStatement.minParameters()
public java.lang.String getDescription()
IGuiSlot
IGuiSlot.getTooltip()
. (As such this might return null or throw an exception)getDescription
in interface IGuiSlot
IGuiSlot.getDescription()
public IStatementParameter createParameter(int index)
IStatement
createParameter
in interface IStatement
IStatement.createParameter(int)
public IStatement rotateLeft()
IStatement
rotateLeft
in interface IStatement
IStatement.rotateLeft()
public ISprite getSprite()
getSprite
in interface IGuiSlot
IGuiSlot.getSprite()
public net.minecraft.tileentity.TileEntity getNeighbourTile(IStatementContainer source)
public abstract StatementWrapper[] getPossible()
IStatement
getPossible
in interface IStatement
public boolean isPossibleOrdered()
isPossibleOrdered
in interface IStatement
public java.util.List<java.lang.String> getTooltip()
getTooltip
in interface IGuiSlot
public int compareTo(StatementWrapper o)
compareTo
in interface java.lang.Comparable<StatementWrapper>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object