Index
All Classes|All Packages|Constant Field Values|Deprecated API
A
- add(int, WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Adds a card to this panel without resizing it.
- add(int, WWidget, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Adds a card to this panel and resizes it.
- add(WTabPanel.Tab) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Adds a tab to this panel.
- add(WWidget) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Adds a new widget to the HUD.
- add(WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Adds a widget to this box.
- add(WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Adds a card to this panel without resizing it.
- add(WWidget, int, int) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Adds a new widget to the HUD at the specified offsets.
- add(WWidget, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Adds a widget to this box.
- add(WWidget, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Adds a card to this panel and resizes it.
- add(WWidget, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Adds a widget to this panel.
- add(WWidget, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WPlainPanel
-
Adds a new widget to this panel.
- add(WWidget, int, int, int, int) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Adds a new widget to the HUD at the specified offsets and resizes it.
- add(WWidget, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Adds a widget to this panel and resizes it to a custom size.
- add(WWidget, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WPlainPanel
-
Adds a new widget to this panel and resizes it to a custom size.
- add(WWidget, CottonHud.Positioner) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Adds a new widget to the HUD with a custom positioner.
- add(WWidget, CottonHud.Positioner, int, int) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Adds a new widget to the HUD with a custom positioner and resizes it.
- add(WWidget, Consumer<WTabPanel.Tab.Builder>) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Configures and adds a tab to this panel.
- add(OrderedText...) - Method in class io.github.cottonmc.cotton.gui.widget.TooltipBuilder
-
Adds the lines to this builder.
- add(Text...) - Method in class io.github.cottonmc.cotton.gui.widget.TooltipBuilder
-
Adds the lines to this builder.
- addChangeListener(WItemSlot.ChangeListener) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Adds a change listener to this slot.
- addChangeListener(WItemSlot, WItemSlot.ChangeListener) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Adds a change listener to this slot.
- addPainters() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- addPainters() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Guis should use this method to add clientside styles and BackgroundPainters to their controls
- addPainters() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- addPainters() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
- addPainters() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- addPainters() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Adds the default background painters to this widget and all children.
- addPainters() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
- addPainters() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Adds the default background painters to this widget and all children.
- addSlotPeer(ValidatedSlot) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- addSlotPeer(ValidatedSlot) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Typical users won't call this.
- addSlotPeer(ValidatedSlot) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- addTooltip(TooltipBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- addTooltip(TooltipBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Adds this widget's tooltip to the
tooltipbuilder. - addTooltip(TooltipBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Adds lines to this widget's tooltip.
- adjustSlider(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- alignment - Variable in class io.github.cottonmc.cotton.gui.widget.WButton
- alignment - Variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- anchor - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- anchorValue - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- apply(Map<Identifier, Properties>, ResourceManager, Profiler) - Method in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- ASLEEP - Enum constant in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
- AWAKE - Enum constant in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
- axis - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- axis - Variable in class io.github.cottonmc.cotton.gui.widget.WBox
-
The axis that the widgets are laid out on.
- axis - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- Axis - Enum Class in io.github.cottonmc.cotton.gui.widget.data
B
- backgroundPainter - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- BackgroundPainter - Interface in io.github.cottonmc.cotton.gui.client
-
Background painters are used to paint the background of a widget.
- bar - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The bar texture.
- bg - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The background texture.
- BLACK - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- BLACK_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- blockInventory - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- BLUE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- BLUE_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- bottom - Variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
The bottom (+Y) inset size.
- BOTTOM - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.VerticalAlignment
- BROWN_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- build() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Builds a tab from this builder.
- Builder(WWidget) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Constructs a new tab data builder.
C
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- canFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Tests whether this widget can have the focus in the GUI.
- canInsert(ItemStack) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
- canPlayerUse(PlayerEntity) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- canResize() - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WText
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- canResize() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Checks whether this widget can be resized using
setSize(int, int). - canTakeItems(PlayerEntity) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
- canUse(PlayerEntity) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- cellHeight - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The height of each child cell.
- CENTER - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
- CENTER - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.VerticalAlignment
- changeFocus(boolean) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- changeFocus(boolean) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- charTyped(char, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- charTyped(char, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- checkValue() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Checks that the current value is in the correct range and adjusts it if needed.
- children - Variable in class io.github.cottonmc.cotton.gui.widget.WPanel
-
The widgets contained within this panel.
- choose(T, T) - Method in enum class io.github.cottonmc.cotton.gui.widget.data.Axis
-
Chooses a value based on this axis.
- clear() - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- CLIENT - Enum constant in enum class io.github.cottonmc.cotton.gui.networking.NetworkSide
-
The logical client.
- close() - Method in class io.github.cottonmc.cotton.gui.client.Scissors.Frame
-
Pops this frame from the stack.
- color - Variable in class io.github.cottonmc.cotton.gui.widget.WButton
- color - Variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- color - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- color - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- color - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- Color - Interface in io.github.cottonmc.cotton.gui.widget.data
- Color.HSL - Class in io.github.cottonmc.cotton.gui.widget.data
- Color.LCH - Class in io.github.cottonmc.cotton.gui.widget.data
- Color.RGB - Class in io.github.cottonmc.cotton.gui.widget.data
- colorAtOpacity(int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
- coloredRect(MatrixStack, int, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws an untextured rectangle of the specified RGB color.
- config - Static variable in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
- ConfigGui - Class in io.github.cottonmc.cotton.gui.impl.modmenu
- ConfigGui(Screen) - Constructor for class io.github.cottonmc.cotton.gui.impl.modmenu.ConfigGui
- configurator - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The widget configurator that configures the passed widget to display the passed data.
- configured - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
- coordToValueRatio - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
A coordinate:value ratio.
- CottonClientScreen - Class in io.github.cottonmc.cotton.gui.client
- CottonClientScreen(GuiDescription) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- CottonClientScreen(Text, GuiDescription) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- CottonHud - Enum Class in io.github.cottonmc.cotton.gui.client
-
Manages widgets that are painted on the in-game HUD.
- CottonHud.Positioner - Interface in io.github.cottonmc.cotton.gui.client
-
Positioners can be used to change the position of a widget based on the window dimensions.
- CottonInventoryScreen<T extends SyncedGuiDescription> - Class in io.github.cottonmc.cotton.gui.client
-
A screen for a
SyncedGuiDescription. - CottonInventoryScreen(T, PlayerEntity) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Constructs a new screen without a title.
- CottonInventoryScreen(T, PlayerEntity, Text) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Constructs a new screen.
- CottonScreenImpl - Interface in io.github.cottonmc.cotton.gui.impl.client
- createColorful(int) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a colorful gui panel painter.
- createColorful(int, float) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a colorful gui panel painter that has a custom contrast between the shadows and highlights.
- createInventoryLabel(PlayerInventory) - Static method in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
Creates a vanilla-style inventory label for a player inventory.
- createLightDarkVariants(BackgroundPainter, BackgroundPainter) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a background painter that uses either the
lightor thedarkbackground painter depending on the current setting. - createNinePatch(Identifier) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a new nine-patch background painter.
- createNinePatch(Identifier, int) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a new nine-patch background painter with a custom padding.
- createPeers(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
- createPeers(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- createPeers(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Deprecated.
- createPlayerInventoryPanel() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Creates a player inventory widget from this panel's player inventory.
- createPlayerInventoryPanel(boolean) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Creates a player inventory widget from this panel's player inventory.
- createPlayerInventoryPanel(WWidget) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Creates a player inventory widget from this panel's player inventory.
- createSlotPeer(Inventory, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Creates a slot peer for this slot widget.
- currentFrame - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- currentFrameTime - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- cursor - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- CYAN_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- cycleFocus(boolean) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Cycles the focused widget in the GUI.
- cycleFocus(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- cycleFocus(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- cycleFocus(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Cycles the focus inside this widget.
- cycleFocus(boolean, WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Cycles the focus inside this panel.
- cycleFocus(GuiDescription, boolean) - Static method in class io.github.cottonmc.cotton.gui.impl.FocusHandler
D
- DARK_TEXTURE - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
- darkMode - Variable in class io.github.cottonmc.cotton.gui.impl.client.LibGuiConfig
- darkmodeColor - Variable in class io.github.cottonmc.cotton.gui.widget.WButton
- darkmodeColor - Variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- darkmodeColor - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- darkmodeColor - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- darkmodeColor - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- darkmodeTitleColor - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- darkTitleColor - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- data - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The list of data that this list represents.
- DEFAULT - Static variable in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.TextureProperties
- DEFAULT_DARKMODE_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- DEFAULT_DARKMODE_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WLabel
-
The default text color for dark mode labels.
- DEFAULT_FOCUS_IMAGE - Static variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- DEFAULT_OFF_IMAGE - Static variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- DEFAULT_ON_IMAGE - Static variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- DEFAULT_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- DEFAULT_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WLabel
-
The default text color for light mode labels.
- description - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- description - Variable in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- direction - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- direction - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
- disableDarkmode() - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- disableDarkmode() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Disables separate dark mode coloring by copying the dark color to be the light color.
- disableDarkmode() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Disables separate dark mode coloring by copying the dark color to be the light color.
- DOWN - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
- DOWN - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
- dragging - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
True if the user is currently dragging the thumb.
- drawBackground(MatrixStack, float, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- drawBeveledPanel(MatrixStack, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a default-sized recessed itemslot panel
- drawBeveledPanel(MatrixStack, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a default-color recessed itemslot panel of variable size
- drawBeveledPanel(MatrixStack, int, int, int, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a generalized-case beveled panel.
- drawForeground(MatrixStack, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- drawGuiPanel(MatrixStack, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a beveled, round rectangle that is substantially similar to default Minecraft UI panels.
- drawGuiPanel(MatrixStack, int, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a beveled, round, and colored rectangle that is substantially similar to default Minecraft UI panels.
- drawGuiPanel(MatrixStack, int, int, int, int, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a beveled, round rectangle with custom edge colors that is substantially similar to default Minecraft UI panels.
- drawString(MatrixStack, String, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a left-aligned string.
- drawString(MatrixStack, String, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a string with a custom alignment.
- drawString(MatrixStack, OrderedText, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a left-aligned text component.
- drawString(MatrixStack, OrderedText, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a text component with a custom alignment.
- drawStringWithShadow(MatrixStack, String, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a shadowed string.
- drawStringWithShadow(MatrixStack, OrderedText, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a shadowed text component.
- drawTextHover(MatrixStack, Style, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws the text hover effects for a text style.
- DYE_COLORS - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
E
- editable - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- EmptyInventory - Class in io.github.cottonmc.cotton.gui
-
An empty inventory that cannot hold any items.
- enabledColor - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- equals(Object) - Method in class io.github.cottonmc.cotton.gui.widget.data.Insets
- expandToFit(WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Expands this panel be at least as large as the widget.
- expandToFit(WWidget, Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Expands this panel be at least as large as the widget.
F
- FALLING_ASLEEP - Enum constant in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
- field - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The ID of the displayed property in the
WBar.properties. - fixedHeight - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Whether this list has a fixed height for items.
- focus - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- focus - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- FocusHandler - Class in io.github.cottonmc.cotton.gui.impl
-
The implementation for focus cycling.
- FocusHandler() - Constructor for class io.github.cottonmc.cotton.gui.impl.FocusHandler
- focusImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- frames - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- frameTime - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- fromString(String) - Static method in enum class io.github.cottonmc.cotton.gui.client.NinePatch.Mode
-
Deserializes a nine-patch mode from a string.
- fullscreen - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- fullscreen - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
G
- getA() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- getAbsoluteX() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the absolute X coordinate of this widget.
- getAbsoluteY() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the absolute Y coordinate of this widget.
- getAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- getAxis() - Method in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
-
Gets the direction's axis.
- getAxis() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getAxis() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Gets the axis of this box.
- getB() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- getBackgroundPainter() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets this slot widget's background painter.
- getBackgroundPainter() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Gets the current
BackgroundPainterof this panel. - getBackgroundPainter() - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- getBlockInventory(ScreenHandlerContext) - Static method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the block inventory at the context.
- getBlockInventory(ScreenHandlerContext, int) - Static method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the block inventory at the context.
- getBlockPropertyDelegate(ScreenHandlerContext) - Static method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the property delegate at the context.
- getBlockPropertyDelegate(ScreenHandlerContext, int) - Static method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the property delegate at the context.
- getBottomPadding() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getCardCount() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Gets the number of cards in this panel.
- getCaretOffset(String, int) - Static method in class io.github.cottonmc.cotton.gui.widget.WTextField
-
From a caret position, finds out what the x-offset to draw the caret is.
- getCaretPos(String, int) - Static method in class io.github.cottonmc.cotton.gui.widget.WTextField
-
From an X offset past the left edge of a TextRenderer.draw, finds out what the closest caret position (division between letters) is.
- getChroma() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.LCH
- getChroma() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the chroma value, which is related to the length of the vector in projected (hexagonal) space.
- getColor() - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Gets the color tint of the texture.
- getColor() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the light mode color of this label.
- getColor() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the light mode color of this label.
- getCornerSize() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getCursor() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getDarkmodeColor() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the dark mode color of this label.
- getDarkmodeColor() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the dark mode color of this label.
- getDescription() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- getDirection() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Gets the direction of this slider.
- getDraggingFinishedListener() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getDuration() - Method in class io.github.cottonmc.cotton.gui.widget.WItem
-
Returns the animation duration of this
WItem. - getFabricId() - Method in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- getFilter() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Gets the item stack filter of this slot.
- getFilter() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets the item filter of this item slot.
- getFocus() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getFocus() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets the currently-focused WWidget.
- getFocus() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- getFocusedSlot() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets the currently focused slot index.
- getFocusImage() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getG() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- getHandlePosition() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- getHandleSize() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Gets the on-axis size of the scrollbar handle in gui pixels
- getHeight() - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- getHeight() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- getHeight() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
- getHorizontalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Gets the horizontal alignment of this box.
- getHorizontalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the horizontal text alignment of this label.
- getHorizontalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the horizontal alignment of this text widget.
- getHost() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the host of this widget.
- getHSLSaturation() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the saturation for this color based on chrominance and HSL luma.
- getHSVSaturation() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the saturation for this color based on chrominance and HSV Value
- getHue() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
- getHue() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.LCH
- getHue() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the HSV/HSL Hue, which is the angle around the color hexagon (or circle)
- getIcon() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Gets the icon of this button.
- getIcon() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Gets the icon of this tab.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Gets the layout insets of this box.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Gets the layout insets of this panel.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WPlainPanel
-
Gets the layout insets of this panel.
- getInventoryIndex() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Gets the index of this slot in its inventory.
- getItems() - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- getLabel() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- getLabel() - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Gets the current label of this slider.
- getLabel() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getLabelAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Gets the text alignment of this slider's label.
- getLabelUpdater() - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Gets the
WLabeledSlider.LabelUpdaterof this slider. - getLastResponder() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- getLastResponder() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- getLastResponder() - Method in interface io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
- getLeftPadding() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getLightness() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the HSL Lightness, or average light intensity, of this color
- getLuma() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
- getLuma() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.LCH
- getLuma() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the HSL Luma, or perceptual brightness, of this color
- getMaxLength() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getMaxScrollValue() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Gets the maximum scroll value achievable; this will typically be the maximum value minus the window size
- getMaxValue() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getMaxValue() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- getMinValue() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getModConfigScreenFactory() - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.ModMenuSupport
- getMode() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getMode() - Method in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.TextureProperties
- getMovableDistance() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Gets the number of pixels the scrollbar handle is able to move along its track from one end to the other.
- getNetworkSide() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the network side this GUI description runs on.
- getOffImage() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getOnClick() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Gets the click handler of this button.
- getOnImage() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getOnToggle() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getOpacity() - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Gets the opacity of the texture.
- getPacketSender() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Gets the packet sender corresponding to this GUI's network side.
- getParent() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the parent panel of this widget.
- getProperties() - Method in class io.github.cottonmc.cotton.gui.widget.WBar
-
Gets the current properties of this bar.
- getProperties(Identifier) - Method in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- getPropertyDelegate() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getPropertyDelegate() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets the object which manages the integer properties used by WBars and such.
- getPropertyDelegate() - Method in interface io.github.cottonmc.cotton.gui.PropertyDelegateHolder
-
Gets this block entity's property delegate.
- getPropertyDelegate() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- getR() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- getRightPadding() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getRootPanel() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getRootPanel() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
- getRootPanel() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- getSaturation() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
- getSelectedCard() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Gets the selected card of this panel.
- getSelectedIndex() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Gets the index of the selected card in this panel.
- getSelection() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getSpacing() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Gets the spacing between widgets.
- getStack() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
- getStack(int) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- getSuggestion() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getText() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the text of this label.
- getText() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the text of this label.
- getText() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getTextStyleAt(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the text style at the specific widget-space coordinates.
- getTextStyleAt(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the text style at the specific widget-space coordinates.
- getTexture() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getThumbWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getThumbWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- getThumbWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- getTileHeight() - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Gets the tile height of this sprite.
- getTileWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Gets the tile width of this sprite.
- getTitle() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Gets the title of this tab.
- getTitleAlignment() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getTitleAlignment() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets the horizontal alignment of the GUI title.
- getTitleAlignment() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- getTitleColor() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getTitleColor() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
- getTitleColor() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- getToggle() - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- getTopPadding() - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- getValue() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Gets the HSV Value, which is just the largest component in the color
- getValue() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getValue() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- getValueChangeListener() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- getVerticalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Gets the vertical alignment of this box.
- getVerticalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Gets the vertical text alignment of this label.
- getVerticalAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Gets the vertical alignment of this text widget.
- getWidget() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Gets the contained widget of this tab.
- getWidth() - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- getWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- getWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
- getWindow() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- getX() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the X coordinate of this widget relative to its parent.
- getY() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Gets the Y coordinate of this widget relative to its parent.
- GRAY_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- GREEN - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- GREEN_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- grid - Variable in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
The grid size in pixels.
- GuiDescription - Interface in io.github.cottonmc.cotton.gui
-
A GUI description represents a GUI without depending on screens.
H
- handle(Executor, PlayerEntity, PacketByteBuf) - Static method in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- hashCode() - Method in class io.github.cottonmc.cotton.gui.widget.data.Insets
- height - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The height of this widget, defaults to 18 pixels.
- hit(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Finds the most specific child node at this location.
- hit(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Find the most specific child node at this location.
- HORIZONTAL - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.Axis
- horizontalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WBox
-
The horizontal alignment for this box's children.
- horizontalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- horizontalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- HorizontalAlignment - Enum Class in io.github.cottonmc.cotton.gui.widget.data
- horizontallyCentered(int) - Static method in interface io.github.cottonmc.cotton.gui.client.CottonHud.Positioner
-
Creates a new positioner that centers widgets on the X axis and offsets them on the Y axis.
- horizontalScrollBar - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
The horizontal scroll bar of this panel.
- host - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The containing
GuiDescriptionof this widget. - HSL(float, float, float) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
- HSL(int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
I
- icon(Icon) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Sets the tab icon.
- Icon - Interface in io.github.cottonmc.cotton.gui.widget.icon
-
A square icon for a widget such as a button.
- IGNORED - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
- image - Variable in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
The image of this texture.
- init() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- init() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- init() - Static method in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- InputResult - Enum Class in io.github.cottonmc.cotton.gui.widget.data
-
Specifies whether an input event was ignored or processed.
- insertText(int, String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- Insets - Class in io.github.cottonmc.cotton.gui.widget.data
-
The layout insets of a panel.
- Insets(int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- Insets(int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- Insets(int, int, int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- INSTANCE - Enum constant in enum class io.github.cottonmc.cotton.gui.client.CottonHud
- INSTANCE - Static variable in class io.github.cottonmc.cotton.gui.EmptyInventory
- INSTANCE - Static variable in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- interpolate(Color.RGB, double) - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Calculates an interpolated value along the fraction t between 0.0 and 1.0.
- io.github.cottonmc.cotton.gui - package io.github.cottonmc.cotton.gui
-
Basic GUI classes and server-side GUI descriptions.
- io.github.cottonmc.cotton.gui.client - package io.github.cottonmc.cotton.gui.client
-
Client-side APIs for rendering GUIs and configuring LibGui.
- io.github.cottonmc.cotton.gui.impl - package io.github.cottonmc.cotton.gui.impl
-
Internal implementation classes.
- io.github.cottonmc.cotton.gui.impl.access - package io.github.cottonmc.cotton.gui.impl.access
-
Internal implementation classes.
- io.github.cottonmc.cotton.gui.impl.client - package io.github.cottonmc.cotton.gui.impl.client
-
Internal implementation classes.
- io.github.cottonmc.cotton.gui.impl.modmenu - package io.github.cottonmc.cotton.gui.impl.modmenu
-
Mod Menu support for LibGui.
- io.github.cottonmc.cotton.gui.networking - package io.github.cottonmc.cotton.gui.networking
-
Screen networking helpers.
- io.github.cottonmc.cotton.gui.widget - package io.github.cottonmc.cotton.gui.widget
-
Widgets for building GUIs.
- io.github.cottonmc.cotton.gui.widget.data - package io.github.cottonmc.cotton.gui.widget.data
-
Data classes used by widgets.
- io.github.cottonmc.cotton.gui.widget.icon - package io.github.cottonmc.cotton.gui.widget.icon
-
The icon API for displaying various icons on widgets.
- isActivationKey(int) - Static method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Tests if the provided key code is an activation key for widgets.
- isBigSlot() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- isDarkMode() - Static method in class io.github.cottonmc.cotton.gui.client.LibGui
-
Returns whether LibGui is running in dark mode and widgets should use dark theming.
- isDecreasingKey(int, WAbstractSlider.Direction) - Static method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Tests if the key should decrease sliders with the specified direction.
- isDragging() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Tests whether the user is dragging this slider.
- isEditable() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- isEmpty() - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- isEnabled() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- isFocused() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Tests whether this widget has focus.
- isFocused(WWidget) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- isFocused(WWidget) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Tests whether the widget is the currently-focused one.
- isFocused(WWidget) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- isFullscreen() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- isFullscreen() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets whether this GUI is fullscreen.
- isFullscreen() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- isIncreasingKey(int, WAbstractSlider.Direction) - Static method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Tests if the key should increase sliders with the specified direction.
- isInsertingAllowed() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Returns whether items can be inserted into this slot.
- isInsertingAllowed() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns whether items can be inserted into this slot.
- isInverted() - Method in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
-
Returns whether this slider is inverted.
- isModifiable() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns true if the contents of this
WItemSlotcan be modified by players. - isMouseInsideBounds(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Checks if the mouse cursor is close enough to the slider that the user can start dragging.
- isMouseInsideBounds(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- isMouseInsideBounds(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- isOn - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- isPauseScreen() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- isScrollingHorizontally() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Returns whether this scroll panel has a horizontal scroll bar.
- isScrollingVertically() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Returns whether this scroll panel has a vertical scroll bar.
- isTakingAllowed() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Returns whether items can be taken from this slot.
- isTakingAllowed() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns whether items can be taken from this slot.
- isTitleVisible() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- isTitleVisible() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets whether the title of this GUI should be rendered by the screen.
- isTitleVisible() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- isVisible() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Tests whether this slot is visible.
- isWithinBounds(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Checks whether a location is within this widget's bounds.
- ItemIcon - Class in io.github.cottonmc.cotton.gui.widget.icon
-
An icon that draws an item stack.
- ItemIcon(Item) - Constructor for class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
-
Constructs an item icon with the item's default stack.
- ItemIcon(ItemStack) - Constructor for class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
-
Constructs an item icon.
J
- jankson - Static variable in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
K
- keyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- keyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- keyReleased(int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- keyReleased(int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
L
- label - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- lastFrame - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- lastResponder - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- lastResponder - Variable in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- layout() - Method in class io.github.cottonmc.cotton.gui.widget.WBox
- layout() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
- layout() - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- layout() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Uses this Panel's layout rules to reposition and resize components to fit nicely in the panel.
- layout() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- LCH(float, float, float) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.LCH
- left - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- left - Variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
The left (-X) inset size.
- LEFT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
- LEFT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
- LEFT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
- LibGui - Class in io.github.cottonmc.cotton.gui.client
-
This class provides access to LibGui configuration and other global data.
- LibGuiClient - Class in io.github.cottonmc.cotton.gui.impl.client
- LibGuiClient() - Constructor for class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
- LibGuiCommon - Class in io.github.cottonmc.cotton.gui.impl
- LibGuiCommon() - Constructor for class io.github.cottonmc.cotton.gui.impl.LibGuiCommon
- LibGuiConfig - Class in io.github.cottonmc.cotton.gui.impl.client
- LibGuiConfig() - Constructor for class io.github.cottonmc.cotton.gui.impl.client.LibGuiConfig
- LIGHT_BLUE_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- LIGHT_GRAY_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- LIGHT_TEXTURE - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
- LightweightGuiDescription - Class in io.github.cottonmc.cotton.gui.client
-
A GuiDescription without any associated Minecraft classes
- LightweightGuiDescription() - Constructor for class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- LIME_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- listeners - Variable in class io.github.cottonmc.cotton.gui.ValidatedSlot
- loadConfig() - Static method in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
- logger - Static variable in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
M
- MAGENTA_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- margin - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
- markDirty() - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- markDirty() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
- max - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- max - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The ID of the property representing the maximum value of the
WBar.field. - maxLength - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- maxValue - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The constant maximum value of the
WBar.field. - maxValue - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- MetadataLoader() - Constructor for class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- min - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- MOD_ID - Static variable in class io.github.cottonmc.cotton.gui.impl.LibGuiCommon
- ModMenuSupport - Class in io.github.cottonmc.cotton.gui.impl.modmenu
- ModMenuSupport() - Constructor for class io.github.cottonmc.cotton.gui.impl.modmenu.ModMenuSupport
- mouseClicked(double, double, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseClicked(double, double, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- mouseDragged(double, double, int, double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseDragged(double, double, int, double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- MouseInputHandler - Class in io.github.cottonmc.cotton.gui.impl.client
-
The implementation for mouse inputs.
- MouseInputHandler() - Constructor for class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- mouseMoved(double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseMoved(double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- mouseReleased(double, double, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseReleased(double, double, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- mouseScrolled(double, double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseScrolled(double, double, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- multiplyColor(int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
N
- NetworkSide - Enum Class in io.github.cottonmc.cotton.gui.networking
-
The sides of a network connection.
- NinePatch - Class in io.github.cottonmc.cotton.gui.client
-
The nine-patch background painter paints rectangles using a nine-patch texture.
- NinePatch(Identifier) - Constructor for class io.github.cottonmc.cotton.gui.client.NinePatch
-
Creates a nine-patch background painter with 4 px corners and a 0.25 corner UV.
- NinePatch(Identifier, int, float) - Constructor for class io.github.cottonmc.cotton.gui.client.NinePatch
-
Creates a nine-patch background painter.
- NinePatch.Mode - Enum Class in io.github.cottonmc.cotton.gui.client
-
The mode of a nine-patch painter defines how it fills the area between the corners.
- NinePatchInternals - Class in io.github.cottonmc.cotton.gui.impl.client
- NinePatchInternals() - Constructor for class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals
- NinePatchInternals.MetadataLoader - Class in io.github.cottonmc.cotton.gui.impl.client
- NinePatchInternals.TextureProperties - Class in io.github.cottonmc.cotton.gui.impl.client
- NONE - Static variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Empty layout insets that do not provide any borders around content.
O
- of(boolean) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
-
Gets the corresponding input result for a
processedboolean. - of(int, int) - Static method in interface io.github.cottonmc.cotton.gui.client.CottonHud.Positioner
-
Creates a new positioner that offsets widgets.
- of(SyncedGuiDescription, NetworkSide) - Static method in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- of(SyncedGuiDescription, NetworkSide) - Static method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Gets a networking handler for the GUI description that is active on the specified side.
- of(Inventory, int) - Static method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- of(Inventory, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- offImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- OFFSET_X_TEXT - Static variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- ofPlayerStorage(Inventory) - Static method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Creates a 9x3 slot widget from the "main" part of a player inventory.
- onChanged - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- onCharTyped(char) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- onCharTyped(char) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that a character has been typed.
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- onClick(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been pressed and released, both while inside its bounds.
- onFocusGained() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- onFocusGained() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that it has gained focus
- onFocusLost() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that it has lost focus
- onHidden() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- onHidden() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- onHidden() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that it won't be drawn and hides any visible peers of itself and its children.
- onHudRender(MatrixStack, float) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
- onImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- onInitialize() - Method in class io.github.cottonmc.cotton.gui.impl.LibGuiCommon
- onInitializeClient() - Method in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- onKeyPressed(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that a key has been pressed.
- onKeyReleased(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onKeyReleased(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that a key has been released
- onMessage(PacketByteBuf) - Method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking.MessageReceiver
-
Handles a received screen message.
- onMouseDown(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onMouseDown(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onMouseDown(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been pressed while inside its bounds
- onMouseDown(GuiDescription, CottonScreenImpl, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- onMouseDrag(int, int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onMouseDrag(int, int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onMouseDrag(int, int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been moved while pressed and inside its bounds.
- onMouseDrag(GuiDescription, S, int, int, int, double, double) - Static method in class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- onMouseMove(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been moved while inside its bounds.
- onMouseMove(GuiDescription, int, int) - Static method in class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- onMouseScroll(int, int, double) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onMouseScroll(int, int, double) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- onMouseScroll(int, int, double) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onMouseScroll(int, int, double) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- onMouseScroll(int, int, double) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been scrolled inside its bounds.
- onMouseScroll(GuiDescription, int, int, double) - Static method in class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- onMouseUp(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onMouseUp(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onMouseUp(int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been released while inside its bounds
- onMouseUp(GuiDescription, S, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.impl.client.MouseInputHandler
- onShown() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- onShown() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- onShown() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that it is visible and shows any hidden peers of itself and its children.
- onSlotClick(int, int, SlotActionType, PlayerEntity) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- onStackChanged(WItemSlot, Inventory, int, ItemStack) - Method in interface io.github.cottonmc.cotton.gui.widget.WItemSlot.ChangeListener
-
Handles a changed item stack in an item slot.
- onToggle - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- onToggle(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- onValueChanged(int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onValueChanged(int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- opaqueRgb(int) - Static method in interface io.github.cottonmc.cotton.gui.widget.data.Color
- ORANGE_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- outputOf(Inventory, int) - Static method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
P
- paint(MatrixStack, int, int, int) - Method in interface io.github.cottonmc.cotton.gui.widget.icon.Icon
-
Paints this icon.
- paint(MatrixStack, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
- paint(MatrixStack, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WClippedPanel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- paint(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Paints this widget.
- paintBackground(MatrixStack, int, int, WWidget) - Method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Paint the specified panel to the screen.
- paintBackground(MatrixStack, int, int, WWidget) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- paintFrame(MatrixStack, int, int, Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Paints a single frame for this sprite.
- paintFrame(MatrixStack, int, int, Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
- parent - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The containing panel of this widget.
- PINK_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- pixelsToValues(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- playerInventory - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- pop() - Static method in class io.github.cottonmc.cotton.gui.client.Scissors
-
Pops the topmost scissor frame and refreshes the scissored area.
- prepare(ResourceManager, Profiler) - Method in class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.MetadataLoader
- PROCESSED - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
- properties - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
- propertyDelegate - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- propertyDelegate - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- PropertyDelegateHolder - Interface in io.github.cottonmc.cotton.gui
-
This interface can be implemented on block entity classes for providing a property delegate.
- PURPLE_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- push(int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.Scissors
-
Pushes a new scissor frame onto the stack and refreshes the scissored area.
R
- receive(Identifier, ScreenNetworking.MessageReceiver) - Method in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- receive(Identifier, ScreenNetworking.MessageReceiver) - Method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Registers a message receiver for the message.
- RED - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- RED_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- releaseFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
If this widget has a host, releases this widget's focus.
- releaseFocus(WWidget) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- releaseFocus(WWidget) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Notifies this gui that the widget wants to give up its hold over focus.
- releaseFocus(WWidget) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- remove(WWidget) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Removes the widget from the HUD.
- remove(WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Removes the widget from this panel.
- removed() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- removed() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- removeStack(int) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- removeStack(int, int) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- render(MatrixStack, int, int, float) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- render(MatrixStack, int, int, float) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- renderTextField(MatrixStack, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderTextHover(MatrixStack, Style, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- renderTextHover(MatrixStack, Style, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- renderTextHover(MatrixStack, Style, int, int) - Method in interface io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
- renderTooltip(MatrixStack, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Internal method to render tooltip data.
- reposition(int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
-
Repositions the root panel.
- reposition(int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Repositions the root panel.
- reposition(WWidget, int, int) - Method in interface io.github.cottonmc.cotton.gui.client.CottonHud.Positioner
-
Repositions the widget according to the HUD dimensions.
- requestFocus() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
If this widget has a host, requests the focus from the host.
- requestFocus(WWidget) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- requestFocus(WWidget) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Notifies this gui that the widget wants to acquire focus.
- requestFocus(WWidget) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- rgb(int) - Static method in interface io.github.cottonmc.cotton.gui.widget.data.Color
- rgb(int, int, int, int) - Static method in interface io.github.cottonmc.cotton.gui.widget.data.Color
- RGB(int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- RGB(int, int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
-
Constructs an RGB object with 100% alpha value (no transparency)
- RGB(int, int, int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- right - Variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
The right (+X) inset size.
- RIGHT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
- RIGHT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
- RIGHT - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
- ROOT_PANEL - Static variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
The default insets of a root panel, providing 7 pixels around the content on all sides.
- rootPanel - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- rootPanel - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
S
- saveConfig(LibGuiConfig) - Static method in class io.github.cottonmc.cotton.gui.impl.client.LibGuiClient
- schedule(int[]) - Method in class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- Scissors - Class in io.github.cottonmc.cotton.gui.client
-
Contains a stack for GL scissors for restricting the drawn area of a widget.
- Scissors.Frame - Class in io.github.cottonmc.cotton.gui.client
-
A single scissor frame in the stack.
- SCREEN_MESSAGE_C2S - Static variable in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- SCREEN_MESSAGE_S2C - Static variable in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- ScreenDrawing - Class in io.github.cottonmc.cotton.gui.client
-
ScreenDrawingcontains utility methods for drawing contents on a screen. - ScreenNetworking - Interface in io.github.cottonmc.cotton.gui.networking
-
ScreenNetworkinghandles screen-related network messages sent between the server and the client. - ScreenNetworking.MessageReceiver - Interface in io.github.cottonmc.cotton.gui.networking
-
A handler for received screen messages.
- ScreenNetworkingImpl - Class in io.github.cottonmc.cotton.gui.impl
- scrollBar - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The scroll bar of this list.
- select - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
-
If not -1, select is the "anchor point" of a selection.
- send(Identifier, Consumer<PacketByteBuf>) - Method in class io.github.cottonmc.cotton.gui.impl.ScreenNetworkingImpl
- send(Identifier, Consumer<PacketByteBuf>) - Method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Sends a screen message to the other side of the connection.
- SERVER - Enum constant in enum class io.github.cottonmc.cotton.gui.networking.NetworkSide
-
The logical server.
- setAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- setAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- setAxis(Axis) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Sets the axis of this box.
- setBackgroundPainter(BackgroundPainter) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets this item slot's background painter.
- setBackgroundPainter(BackgroundPainter) - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- setBackgroundPainter(BackgroundPainter) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Sets the
BackgroundPainterof this panel. - setBackgroundPainter(BackgroundPainter) - Method in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
Sets the background painter of this inventory widget's slots.
- setBackgroundPainter(BackgroundPainter) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setBottomPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setChangedListener(Consumer<String>) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Sets the color tint of the texture.
- setColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the light mode color of this label.
- setColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the light mode color of this label.
- setColor(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- setColor(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the light and dark mode colors of this label.
- setColor(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the light and dark mode colors of this label.
- setColor(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setCursorPos(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setDarkmodeColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- setDarkmodeColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the dark mode color of this label.
- setDarkmodeColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the dark mode color of this label.
- setDirection(WAbstractSlider.Direction) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Sets the direction of this slider.
- setDisabledColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setDraggingFinishedListener(IntConsumer) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- setDuration(int) - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- setEditable(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setEnabled(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- setEnabledColor(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets the item stack filter of this slot.
- setFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets the item filter of this item slot.
- setFocusImage(Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setFrames(Texture...) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the animation frames of this sprite.
- setFrames(Identifier...) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the animation frames of this sprite.
- setFullscreen(boolean) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setFullscreen(boolean) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets whether this GUI is fullscreen.
- setFullscreen(boolean) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setHorizontalAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Sets the horizontal alignment of this box.
- setHorizontalAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the horizontal text alignment of this label.
- setHorizontalAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the horizontal alignment of this text widget.
- setHost(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the host of this widget without creating peers.
- setIcon(Icon) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Sets the icon of this button.
- setImage(Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the image of this sprite.
- setImage(Identifier) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the image of this sprite.
- setInsertingAllowed(boolean) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets whether inserting items into this slot is allowed.
- setInsertingAllowed(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets whether inserting items into this slot is allowed.
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Sets the layout insets of this box.
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Sets the layout insets of this panel.
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WPlainPanel
-
Sets the layout insets of this panel.
- setItems(List<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.widget.WItem
-
Sets the item list of this
WItemand resets the animation state. - setLabel(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Sets the label of this slider.
- setLabel(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setLabel(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- setLabelAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Sets the text alignment of this slider's label.
- setLabelUpdater(WLabeledSlider.LabelUpdater) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Sets the
WLabeledSlider.LabelUpdaterof this slider. - setLastResponder(WWidget) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- setLastResponder(WWidget) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- setLastResponder(WWidget) - Method in interface io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
- setLeftPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setListItemHeight(int) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Sets the height of this list's items to a constant value.
- setLocation(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the location of this widget relative to its parent.
- setMaxLength(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setMaxValue(int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- setMaxValue(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- setMinValue(int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- setMode(NinePatch.Mode) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
-
Sets the mode of this painter to the specified mode.
- setModifiable(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- setOffImage(Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setOnClick(Runnable) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Sets the click handler of this button.
- setOnImage(Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setOnToggle(Consumer<Boolean>) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setOpacity(float) - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Sets the opacity of the texture.
- setOpaqueTint(int) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the tint for this sprite to the following opaque color.
- setPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setPadding(int, int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setPadding(int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setParent(WPanel) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the parent panel of this widget.
- setPositioner(WWidget, CottonHud.Positioner) - Method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Sets the positioner of the widget.
- setProperties(PropertyDelegate) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
-
Sets the current properties of this bar.
- setPropertyDelegate(PropertyDelegate) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setPropertyDelegate(PropertyDelegate) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets the object which manages the integer properties used by WBars
- setPropertyDelegate(PropertyDelegate) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setRightPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setRootPanel(WPanel) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setRootPanel(WPanel) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
- setRootPanel(WPanel) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setScrollingHorizontally(TriState) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- setScrollingVertically(TriState) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- setSelectedCard(WWidget) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Sets the selected card of this panel.
- setSelectedIndex(int) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Sets the selected index of this panel.
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the size of this widget.
- setSpacing(int) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Sets the spacing between widgets in this box.
- setStack(int, ItemStack) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- setSuggestion(String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setSuggestion(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setTakingAllowed(boolean) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets whether taking items from this slot is allowed.
- setTakingAllowed(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets whether taking items from this slot is allowed.
- setText(String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setText(Supplier<String>) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- setText(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the text of this label.
- setText(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the text of this label.
- setTextPredicate(Predicate<String>) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setTileHeight(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Sets the tile height of this sprite.
- setTileSize(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Sets the tiling size.
- setTileWidth(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Sets the tile width of this sprite.
- setTint(int) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the tint for this sprite to the following color-with-alpha.
- setTitleAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setTitleAlignment(HorizontalAlignment) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets the horizontal alignment of the GUI title.
- setTitleAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setTitleColor(int) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setTitleColor(int) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets the title color of this GUI.
- setTitleColor(int) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setTitleColor(int, int) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setTitleColor(int, int) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets the light and dark title colors of this GUI.
- setTitleColor(int, int) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setTitleVisible(boolean) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setTitleVisible(boolean) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets whether the title of this GUI should be rendered by the screen.
- setTitleVisible(boolean) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- setToggle(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- setTopPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatch
- setUv(float, float, float, float) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Sets the UV values of this sprite.
- setValue(int) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Sets the slider value without calling listeners.
- setValue(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- setValue(int, boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Sets the slider value.
- setValueChangeListener(IntConsumer) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- setVerticalAlignment(VerticalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WBox
-
Sets the vertical alignment of this box.
- setVerticalAlignment(VerticalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets the vertical text alignment of this label.
- setVerticalAlignment(VerticalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets the vertical alignment of this text widget.
- setWindow(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- setVisible(boolean) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets whether this slot is visible.
- setX(int) - Method in interface io.github.cottonmc.cotton.gui.impl.access.SlotAccessor
- setY(int) - Method in interface io.github.cottonmc.cotton.gui.impl.access.SlotAccessor
- singleImage - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- size() - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- sliding - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- SLOT - Static variable in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
The
SLOTbackground painter draws item slots or slot-like widgets. - SlotAccessor - Interface in io.github.cottonmc.cotton.gui.impl.access
- spacing - Variable in class io.github.cottonmc.cotton.gui.widget.WBox
-
The spacing between widgets.
- STRETCHING - Enum constant in enum class io.github.cottonmc.cotton.gui.client.NinePatch.Mode
-
The texture is stretched to fill the edges and the center.
- suggestion - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- supplier - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The supplier of new empty widgets.
- SyncedGuiDescription - Class in io.github.cottonmc.cotton.gui
-
A screen handler-based GUI description for GUIs with slots.
- SyncedGuiDescription(ScreenHandlerType<?>, int, PlayerInventory) - Constructor for class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- SyncedGuiDescription(ScreenHandlerType<?>, int, PlayerInventory, Inventory, PropertyDelegate) - Constructor for class io.github.cottonmc.cotton.gui.SyncedGuiDescription
T
- Tab(Text, Icon, WWidget, Consumer<TooltipBuilder>) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Deprecated.Use
WTabPanel.Tab.Builderinstead. - text - Variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- text - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- text - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- text - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- textPredicate - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- Texture - Class in io.github.cottonmc.cotton.gui.widget.data
-
Represents a texture for a widget.
- Texture(Identifier) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new texture that uses the full image.
- Texture(Identifier, float, float, float, float) - Constructor for class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new texture with custom UV values.
- texturedGuiRect(MatrixStack, int, int, int, int, Identifier, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle with UV values based on the width and height.
- texturedGuiRect(MatrixStack, int, int, int, int, Identifier, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle with UV values based on the width and height.
- texturedRect(MatrixStack, int, int, int, int, Texture, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(MatrixStack, int, int, int, int, Texture, int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(MatrixStack, int, int, int, int, Identifier, float, float, float, float, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(MatrixStack, int, int, int, int, Identifier, float, float, float, float, int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(MatrixStack, int, int, int, int, Identifier, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(MatrixStack, int, int, int, int, Identifier, int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- TextureIcon - Class in io.github.cottonmc.cotton.gui.widget.icon
-
An icon that draws a texture.
- TextureIcon(Texture) - Constructor for class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Constructs a new texture icon.
- TextureIcon(Identifier) - Constructor for class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
-
Constructs a new texture icon.
- TextureProperties(NinePatch.Mode) - Constructor for class io.github.cottonmc.cotton.gui.impl.client.NinePatchInternals.TextureProperties
- THUMB_SIZE - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
- tick() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- tick() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- tick() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- tick() - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- tick() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Ticks all children of this panel.
- tick() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Executes a client-side tick for this widget.
- TILING - Enum constant in enum class io.github.cottonmc.cotton.gui.client.NinePatch.Mode
-
The texture is tiled to fill the edges and the center.
- tint - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- title(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Sets the tab title.
- titleAlignment - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- titleAlignment - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- titleColor - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- titleColor - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- titleVisible - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- titleVisible - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- titleX - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
-
The X coordinate of the screen title.
- titleY - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
-
The Y coordinate of the screen title.
- tooltip(Collection<? extends Text>) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Adds lines to the tab's tooltip.
- tooltip(Text...) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Adds lines to the tab's tooltip.
- TooltipBuilder - Class in io.github.cottonmc.cotton.gui.widget
-
A builder for widget tooltips.
- TooltipBuilder() - Constructor for class io.github.cottonmc.cotton.gui.widget.TooltipBuilder
- tooltipLabel - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
- tooltipTextComponent - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
- top - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- top - Variable in class io.github.cottonmc.cotton.gui.widget.data.Insets
-
The top (-Y) inset size.
- TOP - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.VerticalAlignment
- toRgb() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.HSL
- toRgb() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.LCH
- toRgb() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- toRgb() - Method in interface io.github.cottonmc.cotton.gui.widget.data.Color
-
Gets an ARGB integer representing this color in the sRGB colorspace.
- toString() - Method in class io.github.cottonmc.cotton.gui.client.Scissors.Frame
- toString() - Method in class io.github.cottonmc.cotton.gui.widget.data.Insets
- toString() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- TRACK_WIDTH - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
U
- u1 - Variable in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
The UV coordinates of this texture, between 0 and 1.
- u2 - Variable in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
The UV coordinates of this texture, between 0 and 1.
- unconfigured - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
- uneditableColor - Variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- UP - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
- UP - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
- updateLabel(int) - Method in interface io.github.cottonmc.cotton.gui.widget.WLabeledSlider.LabelUpdater
-
Gets the updated label for the new slider value.
V
- v1 - Variable in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
The UV coordinates of this texture, between 0 and 1.
- v2 - Variable in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
The UV coordinates of this texture, between 0 and 1.
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Creates component peers, lays out children, and initializes animation data for this Widget and all its children.
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Creates component peers, lays out children, and initializes animation data for this Widget and all its children.
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Creates component peers, lays out children, and initializes animation data for this Widget and all its children.
- ValidatedSlot - Class in io.github.cottonmc.cotton.gui
- ValidatedSlot(Inventory, int, int, int) - Constructor for class io.github.cottonmc.cotton.gui.ValidatedSlot
- value - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- value - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.client.NinePatch.Mode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.networking.NetworkSide
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.Axis
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.VerticalAlignment
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.client.CottonHud
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.client.NinePatch.Mode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.networking.NetworkSide
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.Axis
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.VerticalAlignment
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.WAbstractSlider.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.cottonmc.cotton.gui.widget.WBar.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- valueToCoordRatio - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
A value:coordinate ratio.
- VANILLA - Static variable in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
The
VANILLAbackground painter draws a vanilla-like gui panel using nine-patch textures. - VERTICAL - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.Axis
- verticalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WBox
-
The vertical alignment for this box's children.
- verticalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- verticalAlignment - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- VerticalAlignment - Enum Class in io.github.cottonmc.cotton.gui.widget.data
- verticalScrollBar - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
The vertical scroll bar of this panel.
W
- WAbstractSlider - Class in io.github.cottonmc.cotton.gui.widget
-
A base class for slider widgets that can be used to select int values.
- WAbstractSlider(int, int, Axis) - Constructor for class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- WAbstractSlider.Direction - Enum Class in io.github.cottonmc.cotton.gui.widget
-
The direction enum represents all four directions a slider can face.
- WAKING_UP - Enum constant in enum class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite.State
- WBar - Class in io.github.cottonmc.cotton.gui.widget
-
A bar that displays int values from a
PropertyDelegate. - WBar(Texture, Texture, int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WBar
- WBar(Texture, Texture, int, int, WBar.Direction) - Constructor for class io.github.cottonmc.cotton.gui.widget.WBar
- WBar(Identifier, Identifier, int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WBar
- WBar(Identifier, Identifier, int, int, WBar.Direction) - Constructor for class io.github.cottonmc.cotton.gui.widget.WBar
- WBar.Direction - Enum Class in io.github.cottonmc.cotton.gui.widget
- WBox - Class in io.github.cottonmc.cotton.gui.widget
-
Similar to the BoxLayout in Swing, this widget represents a list of widgets along an axis.
- WBox(Axis) - Constructor for class io.github.cottonmc.cotton.gui.widget.WBox
-
Constructs a box.
- WButton - Class in io.github.cottonmc.cotton.gui.widget
- WButton() - Constructor for class io.github.cottonmc.cotton.gui.widget.WButton
-
Constructs a button with no label and no icon.
- WButton(Icon) - Constructor for class io.github.cottonmc.cotton.gui.widget.WButton
-
Constructs a button with an icon.
- WButton(Icon, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WButton
-
Constructs a button with an icon and a label.
- WButton(Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WButton
-
Constructs a button with a label.
- WCardPanel - Class in io.github.cottonmc.cotton.gui.widget
-
Similar to the CardLayout in AWT, this panel displays one widget at a time from a list of widgets.
- WCardPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WCardPanel
- WClippedPanel - Class in io.github.cottonmc.cotton.gui.widget
-
A panel that is clipped to only render widgets inside its bounds.
- WClippedPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WClippedPanel
- WDynamicLabel - Class in io.github.cottonmc.cotton.gui.widget
-
Dynamic labels are labels that pull their text from a
Supplier<String>. - WDynamicLabel(Supplier<String>) - Constructor for class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- WDynamicLabel(Supplier<String>, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- WGridPanel - Class in io.github.cottonmc.cotton.gui.widget
-
A panel that positions children in a grid.
- WGridPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Constructs a grid panel with the default grid size.
- WGridPanel(int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Constructs a grid panel with a custom grid size.
- WHITE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- WHITE_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- width - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The width of this widget, defaults to 18 pixels.
- window - Variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- WItem - Class in io.github.cottonmc.cotton.gui.widget
-
A widget that displays an item or a list of items.
- WItem(List<ItemStack>) - Constructor for class io.github.cottonmc.cotton.gui.widget.WItem
- WItem(ItemStack) - Constructor for class io.github.cottonmc.cotton.gui.widget.WItem
- WItem(Tag<? extends ItemConvertible>) - Constructor for class io.github.cottonmc.cotton.gui.widget.WItem
- WItemSlot - Class in io.github.cottonmc.cotton.gui.widget
-
A widget that displays an item that can be interacted with.
- WItemSlot(Inventory, int, int, int, boolean) - Constructor for class io.github.cottonmc.cotton.gui.widget.WItemSlot
- WItemSlot.ChangeListener - Interface in io.github.cottonmc.cotton.gui.widget
-
A listener for changes in an item slot.
- withConstantMaximum(Identifier, Identifier, int, int, WBar.Direction) - Static method in class io.github.cottonmc.cotton.gui.widget.WBar
-
Creates a WBar that has a constant maximum-value instead of getting the maximum from a field.
- withTooltip(String) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
-
Adds a tooltip to the WBar.
- withTooltip(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- withUv(float, float, float, float) - Method in class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Creates a new texture with different UV values.
- WKirbSprite - Class in io.github.cottonmc.cotton.gui.impl.modmenu
- WKirbSprite() - Constructor for class io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite
- WKirbSprite.State - Enum Class in io.github.cottonmc.cotton.gui.impl.modmenu
- WLabel - Class in io.github.cottonmc.cotton.gui.widget
-
A single-line label widget.
- WLabel(String) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabel
-
Constructs a new label with the default text color.
- WLabel(String, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabel
-
Constructs a new label.
- WLabel(Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabel
-
Constructs a new label with the default text color.
- WLabel(Text, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabel
-
Constructs a new label.
- WLabeledSlider - Class in io.github.cottonmc.cotton.gui.widget
-
A vanilla-style labeled slider widget.
- WLabeledSlider(int, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Constructs a horizontal slider with no default label.
- WLabeledSlider(int, int, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Constructs a horizontal slider.
- WLabeledSlider(int, int, Axis) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Constructs a slider with no default label.
- WLabeledSlider(int, int, Axis, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Constructs a slider.
- WLabeledSlider.LabelUpdater - Interface in io.github.cottonmc.cotton.gui.widget
-
A label updater updates the label of a slider based on the current value.
- WListPanel<D,W extends WWidget> - Class in io.github.cottonmc.cotton.gui.widget
-
Similar to the RecyclerView in Android, this widget represents a scrollable list of items.
- WListPanel(List<D>, Supplier<W>, BiConsumer<D, W>) - Constructor for class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Constructs a list panel.
- world - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- WPanel - Class in io.github.cottonmc.cotton.gui.widget
-
Panels are widgets that contain other widgets.
- WPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WPanel
- WPlainPanel - Class in io.github.cottonmc.cotton.gui.widget
-
A panel that positions children by pixel-perfect positions.
- WPlainPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WPlainPanel
- WPlayerInvPanel - Class in io.github.cottonmc.cotton.gui.widget
-
A player inventory widget that has a visually separate hotbar.
- WPlayerInvPanel(PlayerInventory) - Constructor for class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
Constructs a player inventory panel with a label.
- WPlayerInvPanel(PlayerInventory, boolean) - Constructor for class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
Constructs a player inventory panel.
- WPlayerInvPanel(PlayerInventory, WWidget) - Constructor for class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
Constructs a player inventory panel.
- WScrollBar - Class in io.github.cottonmc.cotton.gui.widget
- WScrollBar() - Constructor for class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Constructs a horizontal scroll bar.
- WScrollBar(Axis) - Constructor for class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Constructs a scroll bar with a custom axis.
- WScrollPanel - Class in io.github.cottonmc.cotton.gui.widget
-
Similar to the JScrollPane in Swing, this widget represents a scrollable widget.
- WScrollPanel(WWidget) - Constructor for class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Creates a vertically scrolling panel.
- WSlider - Class in io.github.cottonmc.cotton.gui.widget
-
A simple slider widget that can be used to select int values.
- WSlider(int, int, Axis) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSlider
- WSprite - Class in io.github.cottonmc.cotton.gui.widget
- WSprite(int, Texture...) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSprite
-
Create a new animated sprite.
- WSprite(int, Identifier...) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSprite
-
Create a new animated sprite.
- WSprite(Texture) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSprite
-
Create a new sprite with a single image.
- WSprite(Identifier) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSprite
-
Create a new sprite with a single image.
- WSprite(Identifier, float, float, float, float) - Constructor for class io.github.cottonmc.cotton.gui.widget.WSprite
-
Create a new sprite with a single image and custom UV values.
- WTabPanel - Class in io.github.cottonmc.cotton.gui.widget
-
A panel that contains creative inventory-style tabs on the top.
- WTabPanel() - Constructor for class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Constructs a new tab panel.
- WTabPanel.Tab - Class in io.github.cottonmc.cotton.gui.widget
-
The data of a tab.
- WTabPanel.Tab.Builder - Class in io.github.cottonmc.cotton.gui.widget
-
A builder for tab data.
- WText - Class in io.github.cottonmc.cotton.gui.widget
-
A multiline label widget.
- WText(Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WText
- WText(Text, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WText
- WTextField - Class in io.github.cottonmc.cotton.gui.widget
- WTextField() - Constructor for class io.github.cottonmc.cotton.gui.widget.WTextField
- WTextField(Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTextField
- WTiledSprite - Class in io.github.cottonmc.cotton.gui.widget
-
A sprite whose texture will be tiled.
- WTiledSprite(int, int, int, Texture...) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Create a new animated tiled sprite.
- WTiledSprite(int, int, int, Identifier...) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Create a new animated tiled sprite.
- WTiledSprite(int, int, Texture) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Create a tiled sprite.
- WTiledSprite(int, int, Identifier) - Constructor for class io.github.cottonmc.cotton.gui.widget.WTiledSprite
-
Create a tiled sprite.
- WToggleButton - Class in io.github.cottonmc.cotton.gui.widget
- WToggleButton() - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with default images and no label.
- WToggleButton(Texture, Texture) - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with custom images and no label.
- WToggleButton(Texture, Texture, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with custom images.
- WToggleButton(Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with default images.
- WToggleButton(Identifier, Identifier) - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with custom images and no label.
- WToggleButton(Identifier, Identifier, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WToggleButton
-
Constructs a toggle button with custom images.
- WWidget - Class in io.github.cottonmc.cotton.gui.widget
-
The base class for all widgets.
- WWidget() - Constructor for class io.github.cottonmc.cotton.gui.widget.WWidget
X
- x - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The X coordinate of this widget relative to its parent.
Y
- y - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The Y coordinate of this widget relative to its parent.
- YELLOW_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
All Classes|All Packages|Constant Field Values|Deprecated API
validate(GuiDescription).