Class StateButtonAddon
java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.BasicButtonAddon
com.hrznstudio.titanium.client.screen.addon.StateButtonAddon
- All Implemented Interfaces:
IScreenAddon,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionStateButtonAddon(ButtonComponent buttonComponent, StateButtonInfo... buttonInfos) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks) Draws the component in the background layervoiddrawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks) Draws the component in the foreground layerabstract intgetState()List<net.minecraft.network.chat.Component>A list of strings that will be drawn as a tooltip when `isInside` returns trueMethods inherited from class com.hrznstudio.titanium.client.screen.addon.BasicButtonAddon
getButton, getXSize, getYSize, mouseClickedMethods inherited from class com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
getPosX, getPosY, isFocused, isMouseOver, setFocused, setPosX, setPosYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getCurrentFocusPath, getRectangle, nextFocusPathMethods inherited from interface com.hrznstudio.titanium.api.client.IScreenAddon
charTyped, init, isBackground, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
StateButtonAddon
-
-
Method Details
-
drawBackgroundLayer
public void drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks) Description copied from interface:IScreenAddonDraws the component in the background layer- Specified by:
drawBackgroundLayerin interfaceIScreenAddon- Overrides:
drawBackgroundLayerin classBasicButtonAddonscreen- The current open screenprovider- The current asset provider used in the GUIguiX- The gui X in the top left cornerguiY- The gui Y in the top left cornermouseX- The current mouse XmouseY- The current mouse YpartialTicks- Partial ticks
-
drawForegroundLayer
public void drawForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks) Description copied from interface:IScreenAddonDraws the component in the foreground layer- Specified by:
drawForegroundLayerin interfaceIScreenAddon- Overrides:
drawForegroundLayerin classBasicButtonAddonscreen- The current open screenprovider- The current asset provider used in the GUIguiX- The gui X in the top left cornerguiY- The gui Y in the top left cornermouseX- The current mouse XmouseY- The current mouse YpartialTicks- Partial Ticks
-
getTooltipLines
Description copied from interface:IScreenAddonA list of strings that will be drawn as a tooltip when `isInside` returns true- Specified by:
getTooltipLinesin interfaceIScreenAddon- Overrides:
getTooltipLinesin classBasicButtonAddon- Returns:
- Returns a list of tooltip lines represented as
Component's
-
getStateInfo
-
getState
public abstract int getState()
-