public abstract class MinecraftGUI.GUIInterface extends GLInterface
GLInterface to be used with MinecraftGUIclipX| 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, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawImagepublic GUIInterface(boolean clipX)
clipX - whether to clip in the horizontal directionpublic boolean getModifier(int modifier)
IInterfacemodifier - the ID of the modifierIInterface.SHIFT,
IInterface.CTRL,
IInterface.ALT,
IInterface.SUPERpublic long getTime()
IInterfacepublic boolean getButton(int button)
IInterfacebutton - the ID of the mouse buttonIInterface.LBUTTON,
IInterface.RBUTTONpublic java.awt.Point getMouse()
IInterfaceprotected float getZLevel()
GLInterfacegetZLevel in class GLInterfaceprotected com.mojang.blaze3d.matrix.MatrixStack getMatrixStack()
GLInterfacegetMatrixStack in class GLInterface