Index
All Classes and Interfaces|All Packages|Constant Field Values
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(Focus<K>) - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel.Builder
-
Adds a focus to this builder.
- add(WTabPanel.Tab) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Adds a tab to this panel.
- add(WWidget) - Static method in 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) - Static method in 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) - Static method in 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) - Static method in 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) - Static method in 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(K, Rect2i) - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel.Builder
-
Adds a focus to this builder.
- 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.
- addAll(Collection<Focus<K>>) - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel.Builder
-
Adds foci from a collection 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.
- addElementNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- addElementNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- addListener(ObservableView.ChangeListener<? super T>) - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
- addListener(ObservableView.ChangeListener<? super T>) - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Adds a change listener to this property view.
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WText
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- addNarrations(NarrationMessageBuilder) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Adds the narrations of this widget to a narration builder.
- 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.WListPanel
- 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
tooltip
builder. - 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
- area() - Method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Returns the value of the
area
record component. - 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 - 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() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the value of the
bottom
record component. - 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.data.ObservableProperty.Builder
-
Builds the observable property.
- build() - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel.Builder
-
Builds a new
SimpleKeyedFocusModel
from the data in this builder. - build() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab.Builder
-
Builds a tab from this builder.
- builder() - Static method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
-
Creates a builder for
SimpleKeyedFocusModel
. - 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.
- canHover() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Tests whether this widget receives mouse hovering status.
- 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.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.ItemSyncedGuiDescription
- 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
- 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(DrawContext, 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.
- 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 - Class in io.github.cottonmc.cotton.gui.client
-
Manages widgets that are painted on the in-game HUD.
- CottonHud() - Constructor for class io.github.cottonmc.cotton.gui.client.CottonHud
- 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> - 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.
- CottonInventoryScreen(T, PlayerInventory) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Constructs a new screen without a title.
- CottonInventoryScreen(T, PlayerInventory, Text) - Constructor for class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Constructs a new screen.
- 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.
- createGuiSprite(Identifier) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a background painter that uses a texture from the GUI atlas.
- 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
light
or thedark
background painter depending on the current setting. - createNinePatch(Texture, Consumer<NinePatch.Builder<Identifier>>) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a new nine-patch background painter with a custom configuration.
- createNinePatch(Identifier) - Static method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Creates a new nine-patch background painter.
- 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_HEIGHT - Static variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- CURSOR_PADDING_Y - Static variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- CYAN_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
D
- DARK_TEXTURE - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
- 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_DARKMODE_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
The default text color for dark mode labels.
- 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_ITEM_FILTER - Static variable in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
The default item filter that allows all items.
- 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_SCROLLING_SPEED - Static variable in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
The default scrolling speed for mouse inputs.
- DEFAULT_TEXT_COLOR - Static variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
The default text color for light mode labels.
- 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
-
The direction of this bar, representing where the bar will grow when the field increases.
- disableDarkmode() - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
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.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(DrawContext, float, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- drawBeveledPanel(DrawContext, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a default-sized recessed itemslot panel
- drawBeveledPanel(DrawContext, 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(DrawContext, 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(DrawContext, int, int) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- drawGuiPanel(DrawContext, 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(DrawContext, 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(DrawContext, 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.
- drawShadows - Variable in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- drawShadows - Variable in class io.github.cottonmc.cotton.gui.widget.WLabel
- drawShadows - Variable in class io.github.cottonmc.cotton.gui.widget.WText
- drawString(DrawContext, String, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a left-aligned string.
- drawString(DrawContext, 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(DrawContext, OrderedText, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a left-aligned text component.
- drawString(DrawContext, 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(DrawContext, String, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a shadowed string.
- drawStringWithShadow(DrawContext, OrderedText, HorizontalAlignment, int, int, int, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a shadowed text component.
- drawTextHover(DrawContext, 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
- empty() - Static method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
-
Creates a "late init" property without an initial value.
- EmptyInventory - Class in io.github.cottonmc.cotton.gui
-
An empty inventory that cannot hold any items.
- equals(Object) - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Indicates whether some other object is "equal to" this one.
- Example - Search tag in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
- Section
- 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) - Method in class io.github.cottonmc.cotton.gui.widget.WPanelWithInsets
- 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
- field - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
The ID of the displayed property in the
WBar.properties
. - Filters - Search tag in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- Section
- find() - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Returns the nonnull value of this property, or
Optional.empty()
if null or not initialized. - fixedHeight - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Whether this list has a fixed height for items.
- foci() - Method in interface io.github.cottonmc.cotton.gui.widget.focus.FocusModel
-
Returns a stream of all foci in the target widget.
- foci() - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
- focus - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- focus - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- Focus<K> - Record Class in io.github.cottonmc.cotton.gui.widget.focus
-
A focus is a focusable area in a widget.
- Focus(K, Rect2i) - Constructor for record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Creates an instance of a
Focus
record class. - focusImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- FocusModel<K> - Interface in io.github.cottonmc.cotton.gui.widget.focus
-
Manages the state of individual foci in a widget.
- frames - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- frameTime - Variable in class io.github.cottonmc.cotton.gui.widget.WSprite
- fullscreen - Variable in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- fullscreen - Variable in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
G
- get() - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
- get() - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Returns the value of this property.
- 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
- getAlignment() - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Gets the horizontal text alignment of this label.
- 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
BackgroundPainter
of 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.NinePatchBackgroundPainter
- getCardCount() - Method in class io.github.cottonmc.cotton.gui.widget.WCardPanel
-
Gets the number of cards in this panel.
- getCaretPosition(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- 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 text widget.
- 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 text widget.
- getDescription() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- getDescription() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- 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
- getDrawShadows() - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Checks whether shadows should be drawn for this label.
- getDrawShadows() - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Checks whether shadows should be drawn for this label.
- getDrawShadows() - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Checks whether shadows should be drawn for this text widget.
- getDuration() - Method in class io.github.cottonmc.cotton.gui.widget.WItem
-
Returns the animation duration of this
WItem
. - 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
- getFocusedKey() - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
-
Returns the focused key, or
null
if not available. - 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
- getFocusModel() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- getFocusModel() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Returns the focus model of this widget.
- getG() - Method in class io.github.cottonmc.cotton.gui.widget.data.Color.RGB
- getGap() - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Returns the gap between list items.
- 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.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.
- getHorizontalScrollBar() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Returns this scroll panel's horizontal scroll bar.
- 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.WItemSlot
-
Returns the icon if set, otherwise null.
- getIcon() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
-
Gets the icon of this tab.
- getIconSize() - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Gets the current height / width of the icon.
- getInputFilter() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Gets the item stack input filter of this slot.
- getInputFilter() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets the item stack input filter of this slot.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Returns the layout insets used for the contents of this list.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WPanelWithInsets
-
Gets the layout insets of this panel.
- getInsets() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Returns the layout insets used for the viewed widget.
- getInventory() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns the inventory backing this slot.
- 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.LabelUpdater
of this slider. - getLastResponder() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- getLastResponder() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- getLeftPadding() - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- 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
- 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.
- getName() - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
-
Returns the name of this property.
- getNarrationName() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns a "narration name" for this slot.
- 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.
- getOrNull() - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Returns the value of this property, or null if not initialized.
- getOutputFilter() - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Gets the item stack output filter of this slot.
- getOutputFilter() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets the item stack output filter of this slot.
- 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.
- getPeers() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns an unmodifiable list containing the current slot peers.
- getPeerStartId() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Gets the starting ID for the slot peers.
- getProperties() - Method in class io.github.cottonmc.cotton.gui.widget.WBar
-
Gets the current properties of this bar.
- 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.NinePatchBackgroundPainter
- 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
- getScrollBar() - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Gets the
WScrollBar
attached to this panel. - getScrollingSpeed() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Returns the default mouse scroll speed.
- 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.
- getSelectedIndex() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Returns the index of the currently open tab.
- getSelectedTab() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Returns the currently open tab's data.
- getSelection() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getSlotsHigh() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns the height of this slot widget in individual slots.
- getSlotsWide() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns the width of this slot widget in individual slots.
- 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
- getStartIndex() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Returns the starting index of slots in the backing inventory.
- getSuggestion() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- getTabCount() - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Returns the number of tabs in this tab panel.
- 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 text widget.
- getText() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
-
Returns the text in this text field.
- 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.
- getThumbWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
-
Returns the thumb size along the slider axis.
- 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
- getTitlePos() - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- getTitlePos() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Gets the position of the screen title.
- getTitlePos() - 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.NinePatchBackgroundPainter
- 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.WDynamicLabel
-
Gets the vertical text alignment of this label.
- 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.
- getVerticalScrollBar() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Returns this scroll panel's vertical scroll bar.
- 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.widget.WItemSlot
- getWidth() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
- getWindow() - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- getWorld() - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Returns the world of this GUI description's player.
- 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.
- GUI_SPRITE - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.Texture.Type
-
A texture in the GUI sprite atlas.
- GuiDescription - Interface in io.github.cottonmc.cotton.gui
-
A GUI description represents a GUI without depending on screens.
H
- handledScreenTick() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- hashCode() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Returns a hash code value for this object.
- hasValue() - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
- hasValue() - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Returns whether this property has been set to a value.
- height - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The height of this widget, defaults to 18 pixels.
- height() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the total height of these insets.
- height() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns the value of the
height
record component. - 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
- horizontalGap - Variable in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
The horizontal gap between two grid cells.
- 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
GuiDescription
of this widget. - hotbar - Variable in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
A 9 by 1
WItemSlot
that represents the player's hotbar. - hoveredProperty() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Returns whether the user is hovering over 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.
- iconSize - Variable in class io.github.cottonmc.cotton.gui.widget.WButton
-
The size (width/height) of this button's icon in pixels.
- IGNORED - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
- image() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
image
record component. - init() - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- init() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- InputResult - Enum Class in io.github.cottonmc.cotton.gui.widget.data
-
Specifies whether an input event was ignored or processed.
- insets - Variable in class io.github.cottonmc.cotton.gui.widget.WPanelWithInsets
-
The layout insets of this panel.
- Insets - Record Class in io.github.cottonmc.cotton.gui.widget.data
-
The layout insets of a panel.
- Insets(int) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- Insets(int, int) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- Insets(int, int, int, int) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Constructs layout insets.
- INSTANCE - Static variable in class io.github.cottonmc.cotton.gui.EmptyInventory
- 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.
- inventory - Variable in class io.github.cottonmc.cotton.gui.widget.WPlayerInvPanel
-
A 9 by 3
WItemSlot
that represents the player's inventory. - 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.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.focus - package io.github.cottonmc.cotton.gui.widget.focus
-
The widget focus API.
- 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
-
Returns whether this slot is a big slot.
- 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.
- isDarkMode() - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Checks whether dark mode is used for this GUI description.
- 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.ValidatedSlot
- 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(Focus<K>) - Method in interface io.github.cottonmc.cotton.gui.widget.focus.FocusModel
-
Checks if a focus is focused in the target widget.
- isFocused(Focus<K>) - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
- 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
- isGhost() - Method in class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
-
Checks whether this icon is a ghost item.
- isHovered() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Returns whether the user is hovering over this widget.
- isIconOnlyPaintedForEmptySlots() - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Checks whether icons should be rendered when the first slot of this widget contains an item.
- 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
WItemSlot
can 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
- isNarratable() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Returns whether this widget can be narrated.
- isOn - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- 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.
- ItemSyncedGuiDescription - Class in io.github.cottonmc.cotton.gui
- ItemSyncedGuiDescription(ScreenHandlerType<?>, int, PlayerInventory, StackReference) - Constructor for class io.github.cottonmc.cotton.gui.ItemSyncedGuiDescription
-
Constructs an
ItemSyncedGuiDescription
.
K
- key() - Method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Returns the value of the
key
record component. - 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.WPlayerInvPanel
-
The label seen above
WPlayerInvPanel.inventory
. - 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() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the value of the
left
record component. - 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.
- 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
- Listeners - Search tag in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- Section
M
- MAGENTA_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
- 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
. - 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
- min - Variable in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- 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
- 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, double) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- mouseScrolled(double, 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
- name(String) - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty.Builder
-
Sets the name of this property, which is used in debug messages.
- NetworkSide - Enum Class in io.github.cottonmc.cotton.gui.networking
-
The sides of a network connection.
- NinePatchBackgroundPainter - Class in io.github.cottonmc.cotton.gui.client
-
Nine-patch background painters paint rectangles using a special nine-patch texture.
- NinePatchBackgroundPainter(NinePatch<Identifier>) - Constructor for class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- NONE - Static variable in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Empty layout insets that do not provide any borders around content.
- nonnull() - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty.Builder
-
Disallows null values.
O
- ObservableProperty<T> - Class in io.github.cottonmc.cotton.gui.widget.data
-
An observable mutable property.
- ObservableProperty.Builder<T> - Class in io.github.cottonmc.cotton.gui.widget.data
-
A builder for properties.
- ObservableView<T> - Interface in io.github.cottonmc.cotton.gui.widget.data
-
A read-only observable property.
- ObservableView.ChangeListener<T> - Interface in io.github.cottonmc.cotton.gui.widget.data
-
A listener for changes in observable views and properties.
- of(boolean) - Static method in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
-
Gets the corresponding input result for a
processed
boolean. - 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 interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Gets a networking handler for the GUI description that is active on the specified side.
- of(Rect2i) - Static method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Creates a focus of an area and
null
data. - 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
- of(T) - Static method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
-
Creates a property with an initial value.
- offImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- 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.
- 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.
- onClosed(PlayerEntity) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
- onDirectionalKey(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- 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.WItemSlot
- 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.
- onImage - Variable in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- 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(D) - 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
- 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.
- onMouseMove(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- 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.
- onMouseScroll(int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
- onMouseScroll(int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- onMouseScroll(int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- onMouseScroll(int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- onMouseScroll(int, int, double, double) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Notifies this widget that the mouse has been scrolled inside its bounds.
- 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
- onPropertyChange(ObservableView<? extends T>, T, T) - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView.ChangeListener
-
Handles a change in an observable property.
- 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.
- 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
- or(InputResult) - Method in enum class io.github.cottonmc.cotton.gui.widget.data.InputResult
-
Combines this input result with another.
- 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
- owner - Variable in class io.github.cottonmc.cotton.gui.ItemSyncedGuiDescription
-
A reference to the owning item stack of this GUI.
- ownerStack - Variable in class io.github.cottonmc.cotton.gui.ItemSyncedGuiDescription
-
The initial item stack of this GUI.
P
- paint(DrawContext, int, int, int) - Method in interface io.github.cottonmc.cotton.gui.widget.icon.Icon
-
Paints this icon.
- paint(DrawContext, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
- paint(DrawContext, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.icon.TextureIcon
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WBar
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WClippedPanel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItem
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WSlider
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WText
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WToggleButton
- paint(DrawContext, int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Paints this widget.
- paintBackground(DrawContext, int, int, WWidget) - Method in interface io.github.cottonmc.cotton.gui.client.BackgroundPainter
-
Paint the specified panel to the screen.
- paintBackground(DrawContext, int, int, WWidget) - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- paintDescription(DrawContext, int, int, float) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
-
Paints the GUI description of this screen.
- paintFrame(DrawContext, int, int, Texture) - Method in class io.github.cottonmc.cotton.gui.widget.WSprite
-
Paints a single frame for this sprite.
- paintFrame(DrawContext, 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.
- 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
-
The properties used for painting this bar.
- 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.
Q
- quickMove(PlayerEntity, int) - Method in class io.github.cottonmc.cotton.gui.SyncedGuiDescription
R
- readOnly() - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
-
Returns a read-only view of this property.
- receive(Identifier, Decoder<D>, ScreenNetworking.MessageReceiver<D>) - Method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Registers a message receiver for the message.
- Rect2i - Record Class in io.github.cottonmc.cotton.gui.widget.data
-
An immutable, two-dimensional int rectangle consisting of a position and dimensions.
- Rect2i(int, int, int, int) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Creates an instance of a
Rect2i
record class. - 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
- Registering a message receiver - Search tag in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
- Section
- 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) - Static method in 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
- removeListener(ObservableView.ChangeListener<? super T>) - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
- removeListener(ObservableView.ChangeListener<? super T>) - Method in interface io.github.cottonmc.cotton.gui.widget.data.ObservableView
-
Removes a change listener from this property view if present.
- removeStack(int) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- removeStack(int, int) - Method in class io.github.cottonmc.cotton.gui.EmptyInventory
- render(DrawContext, int, int, float) - Method in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- render(DrawContext, int, int, float) - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- renderBox(DrawContext, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderCursor(DrawContext, int, int, String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderSelection(DrawContext, int, int, String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderSuggestion(DrawContext, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderText(DrawContext, int, int, String) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderTextField(DrawContext, int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- renderTooltip(DrawContext, 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() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the value of the
right
record component. - 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 record 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
- 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.
- ScreenDrawing - Class in io.github.cottonmc.cotton.gui.client
-
ScreenDrawing
contains utility methods for drawing contents on a screen. - ScreenNetworking - Interface in io.github.cottonmc.cotton.gui.networking
-
ScreenNetworking
handles screen-related network messages sent between the server and the client. - ScreenNetworking.MessageReceiver<D> - Interface in io.github.cottonmc.cotton.gui.networking
-
A handler for received screen messages.
- scrollBar - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
The scroll bar of this list.
- scrollCursorIntoView() - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- send(Identifier, Encoder<D>, D) - Method in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
-
Sends a screen message to the other side of the connection.
- Sending messages - Search tag in interface io.github.cottonmc.cotton.gui.networking.ScreenNetworking
- Section
- SERVER - Enum constant in enum class io.github.cottonmc.cotton.gui.networking.NetworkSide
-
The logical server.
- set(T) - Method in class io.github.cottonmc.cotton.gui.widget.data.ObservableProperty
-
Sets this property to a constant value.
- setAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
- setAlignment(HorizontalAlignment) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Sets the horizontal text alignment of this label.
- 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
BackgroundPainter
of 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.NinePatchBackgroundPainter
- 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 text widget.
- setColor(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Sets the light and dark mode colors of this label.
- 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 text widget.
- 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
-
Sets the dark mode color of this label.
- 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 text widget.
- 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
- setDrawShadows(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Sets whether shadows should be drawn for this label.
- setDrawShadows(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WLabel
-
Sets whether shadows should be drawn for this label.
- setDrawShadows(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WText
-
Sets whether shadows should be drawn for this text widget.
- 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
- setFocused(Focus<K>) - Method in interface io.github.cottonmc.cotton.gui.widget.focus.FocusModel
-
Applies a focus to the target widget.
- setFocused(Focus<K>) - Method in class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
- 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
- setGap(int) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Sets the gap between list items.
- setGaps(int, int) - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
Set the gaps between grid cells.
- setGhost(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.icon.ItemIcon
-
Marks this icon as a ghost or non-ghost icon.
- 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.
- setHorizontalScrollBar(WScrollBar) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Sets this scroll panel's horizontal scroll bar.
- setHost(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
- setHost(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- setHost(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the host of this widget and all its children without creating peers.
- setHovered(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the
hovered
property. - setIcon(Icon) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Sets the icon of this button.
- setIcon(Icon) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets the icon to this slot.
- setIconOnlyPaintedForEmptySlots(boolean) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets whether icons should be rendered when the first slot of this widget contains an item.
- setIconSize(int) - Method in class io.github.cottonmc.cotton.gui.widget.WButton
-
Sets the new size of the icon.
- 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.
- setInputFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets the item stack input filter of this slot.
- setInputFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets the item input filter of this item slot.
- 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
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WGridPanel
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WListPanel
-
Sets the layout insets used for the contents of this list.
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WPanelWithInsets
-
Sets the layout insets of this panel.
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WPlainPanel
- setInsets(Insets) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Sets the layout insets used for the viewed widget.
- setItems(List<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.widget.WItem
-
Sets the item list of this
WItem
and 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.LabelUpdater
of 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
- setLeftPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- 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
- 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.
- setOutputFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets the item stack output filter of this slot.
- setOutputFilter(Predicate<ItemStack>) - Method in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
Sets the item output filter of this item slot.
- setPadding(int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- setPadding(int, int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- setPadding(int, int, int, int) - Method in class io.github.cottonmc.cotton.gui.client.NinePatchBackgroundPainter
- setParent(WPanel) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Sets the parent panel of this widget.
- setPositioner(WWidget, CottonHud.Positioner) - Static method in 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.NinePatchBackgroundPainter
- 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
- setScrollingSpeed(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
-
Sets the mouse scroll speed.
- 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.
- setSelectedIndex(int) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Sets the currently open tab by its index.
- setSelectedTab(WTabPanel.Tab) - Method in class io.github.cottonmc.cotton.gui.widget.WTabPanel
-
Sets the currently open tab to the provided
WTabPanel.Tab
. - 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.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.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(Text) - Method in class io.github.cottonmc.cotton.gui.widget.WTextField
- setSuggestionColor(int) - 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
-
Sets the text of this text field.
- setText(Supplier<String>) - Method in class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Sets the text of this label.
- 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 text widget.
- 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
- setTitlePos(Vec2i) - Method in class io.github.cottonmc.cotton.gui.client.LightweightGuiDescription
- setTitlePos(Vec2i) - Method in interface io.github.cottonmc.cotton.gui.GuiDescription
-
Sets the position of the screen title.
- setTitlePos(Vec2i) - 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.NinePatchBackgroundPainter
- 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.WDynamicLabel
-
Sets the vertical text alignment of this label.
- 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.
- setVerticalScrollBar(WScrollBar) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollPanel
-
Sets this scroll panel's vertical scroll bar.
- setVisible(boolean) - Method in class io.github.cottonmc.cotton.gui.ValidatedSlot
-
Sets whether this slot is visible.
- setWindow(int) - Method in class io.github.cottonmc.cotton.gui.widget.WScrollBar
- shouldPause() - Method in class io.github.cottonmc.cotton.gui.client.CottonInventoryScreen
- shouldRenderInDarkMode() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Checks if this widget should be rendered in dark mode.
- simple(WWidget) - Static method in interface io.github.cottonmc.cotton.gui.widget.focus.FocusModel
-
Creates a simple focus model for a focusable widget.
- SimpleKeyedFocusModel<K> - Class in io.github.cottonmc.cotton.gui.widget.focus
-
A
FocusModel
implementation that wraps aList
of foci. - SimpleKeyedFocusModel(List<Focus<K>>) - Constructor for class io.github.cottonmc.cotton.gui.widget.focus.SimpleKeyedFocusModel
-
Constructs a keyed focus model.
- SimpleKeyedFocusModel.Builder<K> - Class in io.github.cottonmc.cotton.gui.widget.focus
-
A builder for
SimpleKeyedFocusModel
. - 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
SLOT
background painter draws item slots or slot-like widgets. - SLOT_TEXTURE - Static variable in class io.github.cottonmc.cotton.gui.widget.WItemSlot
-
The default texture of item slots and
BackgroundPainter.SLOT
. - spacing - Variable in class io.github.cottonmc.cotton.gui.widget.WBox
-
The spacing between widgets.
- STANDALONE - Enum constant in enum class io.github.cottonmc.cotton.gui.widget.data.Texture.Type
-
A texture in a standalone texture file.
- streamChildren() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Returns a stream of all visible top-level widgets in this panel.
- 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
-
Constructs a new synced GUI description without a block inventory or a property delegate.
- SyncedGuiDescription(ScreenHandlerType<?>, int, PlayerInventory, Inventory, PropertyDelegate) - Constructor for class io.github.cottonmc.cotton.gui.SyncedGuiDescription
-
Constructs a new synced GUI description.
T
- 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_PADDING_X - Static variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- TEXT_PADDING_Y - Static variable in class io.github.cottonmc.cotton.gui.widget.WTextField
- Texture - Record Class in io.github.cottonmc.cotton.gui.widget.data
-
Represents a texture for a widget.
- Texture(Identifier) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new standalone texture that uses the full image.
- Texture(Identifier, float, float, float, float) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new standalone texture with custom UV values.
- Texture(Identifier, Texture.Type) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new texture that uses the full image.
- Texture(Identifier, Texture.Type, float, float, float, float) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Constructs a new texture with custom UV values.
- Texture.Type - Enum Class in io.github.cottonmc.cotton.gui.widget.data
-
A
Texture
's type. - texturedGuiRect(DrawContext, 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(DrawContext, 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(DrawContext, int, int, int, int, Texture, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(DrawContext, int, int, int, int, Texture, int, float) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(DrawContext, 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(DrawContext, 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(DrawContext, int, int, int, int, Identifier, int) - Static method in class io.github.cottonmc.cotton.gui.client.ScreenDrawing
-
Draws a textured rectangle.
- texturedRect(DrawContext, 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.
- 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.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.WTextField
- tick() - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Executes a client-side tick for this widget.
- 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
-
The translation key of the tooltip.
- tooltipTextComponent - Variable in class io.github.cottonmc.cotton.gui.widget.WBar
-
A tooltip text component.
- top - Variable in class io.github.cottonmc.cotton.gui.client.CottonClientScreen
- top() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the value of the
top
record component. - 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 record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.cottonmc.cotton.gui.widget.focus.Focus
-
Returns a string representation of this record class.
- toString() - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
- TRACK_WIDTH - Static variable in class io.github.cottonmc.cotton.gui.widget.WSlider
- type() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
type
record component. - Types - Search tag in record class io.github.cottonmc.cotton.gui.widget.data.Texture
- Section
U
- u1() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
u1
record component. - u2() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
u2
record component. - unconfigured - Variable in class io.github.cottonmc.cotton.gui.widget.WListPanel
- 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.
- updateValueCoordRatios() - Method in class io.github.cottonmc.cotton.gui.widget.WAbstractSlider
V
- v1() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
v1
record component. - v2() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Returns the value of the
v2
record component. - 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 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.WListPanel
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WPanel
-
Creates component peers 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.WScrollPanel
- validate(GuiDescription) - Method in class io.github.cottonmc.cotton.gui.widget.WWidget
-
Creates component peers 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.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.Texture.Type
-
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.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.Texture.Type
-
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
VANILLA
background painter draws a vanilla-like GUI panel using nine-patch textures. - Vec2i - Record Class in io.github.cottonmc.cotton.gui.widget.data
-
An immutable, two-dimensional int vector.
- Vec2i(int, int) - Constructor for record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Creates an instance of a
Vec2i
record class. - 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.WDynamicLabel
- 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
- verticalGap - Variable in class io.github.cottonmc.cotton.gui.widget.WGridPanel
-
The vertical gap between two grid cells.
- 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.
- 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
-
The direction of a
WBar
, representing where the bar will grown when its field increases. - 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
-
Constructs a new dynamic label with the default text color.
- WDynamicLabel(Supplier<String>, int) - Constructor for class io.github.cottonmc.cotton.gui.widget.WDynamicLabel
-
Constructs a new dynamic label.
- 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.
- width() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Insets
-
Returns the total width of these insets.
- width() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns the value of the
width
record component. - 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(TagKey<? 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(Texture, Texture, 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.
- 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
-
Adds a tooltip
Text
to the WBar. - withUv(float, float, float, float) - Method in record class io.github.cottonmc.cotton.gui.widget.data.Texture
-
Creates a new texture with different UV values.
- WLabel - Class in io.github.cottonmc.cotton.gui.widget
-
A single-line label widget.
- 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, 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(int, int, Text) - Constructor for class io.github.cottonmc.cotton.gui.widget.WLabeledSlider
-
Constructs a horizontal 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> - 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
- WPanelWithInsets - Class in io.github.cottonmc.cotton.gui.widget
-
A panel that has layout insets.
- WPanelWithInsets() - Constructor for class io.github.cottonmc.cotton.gui.widget.WPanelWithInsets
- 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.
- x() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns the value of the
x
record component. - x() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Returns the value of the
x
record component.
Y
- y - Variable in class io.github.cottonmc.cotton.gui.widget.WWidget
-
The Y coordinate of this widget relative to its parent.
- y() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Rect2i
-
Returns the value of the
y
record component. - y() - Method in record class io.github.cottonmc.cotton.gui.widget.data.Vec2i
-
Returns the value of the
y
record component. - YELLOW_DYE - Static variable in interface io.github.cottonmc.cotton.gui.widget.data.Color
All Classes and Interfaces|All Packages|Constant Field Values