public class GuiElementStatementSource<S extends IGuiSlot> extends java.lang.Object implements IInteractionElement
| Modifier and Type | Field and Description |
|---|---|
StatementContext<S> |
ctx |
GuiElementStatementDrag |
dragger |
BuildCraftGui |
gui |
IGuiPosition |
position |
| Constructor and Description |
|---|
GuiElementStatementSource(BuildCraftGui gui,
boolean left,
StatementContext<S> ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToolTips(java.util.List<ToolTip> tooltips)
Called to add tooltips to the list of existing tool tips.
|
void |
drawBackground(float partialTicks) |
static void |
drawGuiSlot(IGuiSlot guiSlot,
double x,
double y) |
double |
getHeight() |
double |
getWidth() |
double |
getX() |
double |
getY() |
void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonKeyPress, onMouseDragged, onMouseReleasedaddHelpElements, drawForeground, getDebugInfo, getThisAndChildrenAt, tickasImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getPosition, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resizepublic final BuildCraftGui gui
public final IGuiPosition position
public final StatementContext<S extends IGuiSlot> ctx
public final GuiElementStatementDrag dragger
public GuiElementStatementSource(BuildCraftGui gui, boolean left, StatementContext<S> ctx)
public double getX()
getX in interface IGuiPositionpublic double getY()
getY in interface IGuiPositionpublic void drawBackground(float partialTicks)
drawBackground in interface IGuiElementpublic static void drawGuiSlot(@Nullable
IGuiSlot guiSlot,
double x,
double y)
public void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElementThis is called EVEN IF the mouse is not inside your width and height!
addToolTips in interface IGuiElementaddToolTips in interface ITooltipElementpublic void onMouseClicked(int button)
IInteractionElementonMouseClicked in interface IInteractionElement