public abstract class MinecraftGUI.GUIInterface extends GLInterface
GLInterface
to be used with MinecraftGUI
clipX
Constructor and Description |
---|
GUIInterface(boolean clipX)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getButton(int button)
Method to query the current mouse button state.
|
protected com.mojang.blaze3d.matrix.MatrixStack |
getMatrixStack()
Get the matrix stack to be used.
|
boolean |
getModifier(int modifier)
Method to query a keyboard modifier.
|
java.awt.Point |
getMouse()
Method to query the current mouse position.
|
long |
getTime()
Returns the time in milliseconds of the start of rendering.
|
protected float |
getZLevel()
Get the z-coordinate to render everything.
|
begin, drawImage, drawLine, drawRect, drawString, end, fillRect, fillTriangle, getFontWidth, getResourcePrefix, getScreenHeight, getScreenWidth, getWindowSize, guiToScreen, loadImage, restore, scissor, screenToGui, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawImage
public GUIInterface(boolean clipX)
clipX
- whether to clip in the horizontal directionpublic boolean getModifier(int modifier)
IInterface
modifier
- the ID of the modifierIInterface.SHIFT
,
IInterface.CTRL
,
IInterface.ALT
,
IInterface.SUPER
public long getTime()
IInterface
public boolean getButton(int button)
IInterface
button
- the ID of the mouse buttonIInterface.LBUTTON
,
IInterface.RBUTTON
public java.awt.Point getMouse()
IInterface
protected float getZLevel()
GLInterface
getZLevel
in class GLInterface
protected com.mojang.blaze3d.matrix.MatrixStack getMatrixStack()
GLInterface
getMatrixStack
in class GLInterface