Class DroneDebuggerOptions
java.lang.Object
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IOptionPage.SimpleOptionPage<DroneDebugClientHandler>
me.desht.pneumaticcraft.client.gui.pneumatic_armor.options.DroneDebuggerOptions
- All Implemented Interfaces:
IOptionPage
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IOptionPage
IOptionPage.SimpleOptionPage<T extends IArmorUpgradeClientHandler<?>> -
Constructor Summary
ConstructorsConstructorDescriptionDroneDebuggerOptions(IGuiScreen screen, DroneDebugClientHandler upgradeHandler) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbooleanShould the "Settings" header be displayed?voidbooleanCan this upgrade be toggled on & off? If true, a checkbox (with the ability to bind a key) will be automatically displayed in this upgrade's GUI.booleanmouseClicked(double mouseX, double mouseY, int mouseButton) Called when mouse is clicked viaContainerEventHandler.mouseClicked(double, double, int)booleanmouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) Called when the mouse is dragged across the GUIbooleanmouseScrolled(double mouseX, double mouseY, double mouseButton) Called when the mouse wheel is rolled.voidpopulateGui(IGuiScreen gui) Here you can initialize your buttons and stuff like with aScreen.voidrenderPost(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, float partialTicks) Called immediately afterScreen.render(GuiGraphics, int, int, float)Here you can render additional things like text.voidrenderPre(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, float partialTicks) Called immediately beforeScreen.render(GuiGraphics, int, int, float)voidtick()Called immediately afterScreen.tick()Methods inherited from class me.desht.pneumaticcraft.api.client.pneumatic_helmet.IOptionPage.SimpleOptionPage
getClientUpgradeHandler, getGuiScreen, getPageName, keyPressed, keyReleasedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IOptionPage
getKeybindingButton, settingsYposition
-
Constructor Details
-
DroneDebuggerOptions
-
-
Method Details
-
clearAreaShowWidgetId
public static void clearAreaShowWidgetId() -
getSelectedDrone
-
populateGui
Description copied from interface:IOptionPageHere you can initialize your buttons and stuff like with aScreen.- Specified by:
populateGuiin interfaceIOptionPage- Overrides:
populateGuiin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
gui- the holding GUI
-
gotoStartWidget
public void gotoStartWidget() -
renderPre
public void renderPre(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, float partialTicks) Description copied from interface:IOptionPageCalled immediately beforeScreen.render(GuiGraphics, int, int, float)- Specified by:
renderPrein interfaceIOptionPage- Overrides:
renderPrein classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
graphics- the GUI draw contextx- mouse Xy- mouse YpartialTicks- partial ticks since last world ticks
-
renderPost
public void renderPost(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, float partialTicks) Description copied from interface:IOptionPageCalled immediately afterScreen.render(GuiGraphics, int, int, float)Here you can render additional things like text.- Specified by:
renderPostin interfaceIOptionPage- Overrides:
renderPostin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
graphics- the GUI draw contextx- mouse Xy- mouse YpartialTicks- partial ticks since last world ticks
-
tick
public void tick()Description copied from interface:IOptionPageCalled immediately afterScreen.tick() -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) Description copied from interface:IOptionPageCalled when mouse is clicked viaContainerEventHandler.mouseClicked(double, double, int)- Specified by:
mouseClickedin interfaceIOptionPage- Overrides:
mouseClickedin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
mouseX- mouse XmouseY- mouse YmouseButton- mouse button- Returns:
- true if the event has been handled, false otherwise
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double mouseButton) Description copied from interface:IOptionPageCalled when the mouse wheel is rolled.- Specified by:
mouseScrolledin interfaceIOptionPage- Overrides:
mouseScrolledin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
mouseX- mouse XmouseY- mouse YmouseButton- scroll direction- Returns:
- true if the event has been handled, false otherwise
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) Description copied from interface:IOptionPageCalled when the mouse is dragged across the GUI- Specified by:
mouseDraggedin interfaceIOptionPage- Overrides:
mouseDraggedin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Parameters:
mouseX- mouse XmouseY- mouse Ybutton- mouse buttondragX- drag XdragY- drag Y- Returns:
- true if the event has been handled, false otherwise
-
isToggleable
public boolean isToggleable()Description copied from interface:IOptionPageCan this upgrade be toggled on & off? If true, a checkbox (with the ability to bind a key) will be automatically displayed in this upgrade's GUI.- Specified by:
isToggleablein interfaceIOptionPage- Overrides:
isToggleablein classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Returns:
- true if the upgrade is toggleable, false otherwise
-
displaySettingsHeader
public boolean displaySettingsHeader()Description copied from interface:IOptionPageShould the "Settings" header be displayed?- Specified by:
displaySettingsHeaderin interfaceIOptionPage- Overrides:
displaySettingsHeaderin classIOptionPage.SimpleOptionPage<DroneDebugClientHandler>- Returns:
- true if the header should be displayed, false otherwise
-