public class DroneDebuggerOptions extends IOptionPage.SimpleOptionPage<DroneDebugClientHandler>
IOptionPage.SimpleOptionPage<T extends IArmorUpgradeClientHandler<?>>| Constructor and Description |
|---|
DroneDebuggerOptions(IGuiScreen screen,
DroneDebugClientHandler upgradeHandler) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearAreaShowWidgetId() |
boolean |
displaySettingsHeader()
Should the "Settings" header be displayed?
|
boolean |
isToggleable()
Can this upgrade be toggled off & on? If true, a checkbox (with the ability to bind a key) will be
automatically displayed in this upgrade's GUI.
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton)
Called when mouse is clicked via
INestedGuiEventHandler.mouseClicked(double, double, int) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY)
Called when the mouse is dragged across the GUI
|
boolean |
mouseScrolled(double mouseX,
double mouseY,
double mouseButton)
Called when the mouse wheel is rolled.
|
void |
populateGui(IGuiScreen gui)
Here you can initialize your buttons and stuff like with a
Screen. |
void |
renderPost(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
Called immediately after
Screen.render(MatrixStack, int, int, float)
Here you can render additional things like text. |
void |
renderPre(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
Called immediately before
Screen.render(MatrixStack, int, int, float) |
void |
tick()
Called immediately after
Screen.tick() |
getClientUpgradeHandler, getGuiScreen, getPageName, keyPressed, keyReleasedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeybindingButton, settingsYpositionpublic DroneDebuggerOptions(IGuiScreen screen, DroneDebugClientHandler upgradeHandler)
public static void clearAreaShowWidgetId()
public void populateGui(IGuiScreen gui)
IOptionPageScreen.populateGui in interface IOptionPagepopulateGui in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>gui - the holding GUIpublic void renderPre(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
IOptionPageScreen.render(MatrixStack, int, int, float)renderPre in interface IOptionPagerenderPre in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>matrixStack - the matrix stackx - mouse Xy - mouse YpartialTicks - partial ticks since last world tickspublic void renderPost(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
IOptionPageScreen.render(MatrixStack, int, int, float)
Here you can render additional things like text.renderPost in interface IOptionPagerenderPost in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>matrixStack - the matrix stackx - mouse Xy - mouse YpartialTicks - partial ticks since last world tickspublic void tick()
IOptionPageScreen.tick()public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
IOptionPageINestedGuiEventHandler.mouseClicked(double, double, int)mouseClicked in interface IOptionPagemouseClicked in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>mouseX - mouse XmouseY - mouse YmouseButton - mouse buttonpublic boolean mouseScrolled(double mouseX,
double mouseY,
double mouseButton)
IOptionPagemouseScrolled in interface IOptionPagemouseScrolled in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>mouseX - mouse XmouseY - mouse YmouseButton - scroll directionpublic boolean mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY)
IOptionPagemouseDragged in interface IOptionPagemouseDragged in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>mouseX - mouse XmouseY - mouse Ybutton - mouse buttondragX - drag XdragY - drag Ypublic boolean isToggleable()
IOptionPageisToggleable in interface IOptionPageisToggleable in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>public boolean displaySettingsHeader()
IOptionPagedisplaySettingsHeader in interface IOptionPagedisplaySettingsHeader in class IOptionPage.SimpleOptionPage<DroneDebugClientHandler>