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, wait
onKeyPress, onMouseDragged, onMouseReleased
addHelpElements, drawForeground, getDebugInfo, getThisAndChildrenAt, tick
asImmutable, 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, resize
public 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 IGuiPosition
public double getY()
getY
in interface IGuiPosition
public void drawBackground(float partialTicks)
drawBackground
in interface IGuiElement
public static void drawGuiSlot(@Nullable IGuiSlot guiSlot, double x, double y)
public void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElement
This is called EVEN IF the mouse is not inside your width and height!
addToolTips
in interface IGuiElement
addToolTips
in interface ITooltipElement
public void onMouseClicked(int button)
IInteractionElement
onMouseClicked
in interface IInteractionElement