public class GuiElementStatementDrag extends java.lang.Object implements IMenuElement
Constructor and Description |
---|
GuiElementStatementDrag(GuiBC8<?> gui) |
Modifier and Type | Method and Description |
---|---|
void |
drawForeground(float partialTicks) |
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!
|
void |
onMouseReleased(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
boolean |
shouldFullyOverride() |
void |
startDragging(IGuiSlot slot) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMouseDragged
addHelpElements, addToolTips, drawBackground, 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 GuiBC8<?> gui
public GuiElementStatementDrag(GuiBC8<?> gui)
public void startDragging(IGuiSlot slot)
public double getX()
getX
in interface IGuiPosition
public double getY()
getY
in interface IGuiPosition
public void drawForeground(float partialTicks)
drawForeground
in interface IGuiElement
public void onMouseClicked(int button)
IInteractionElement
onMouseClicked
in interface IInteractionElement
public void onMouseReleased(int button)
IInteractionElement
onMouseReleased
in interface IInteractionElement
public boolean shouldFullyOverride()
shouldFullyOverride
in interface IMenuElement