-

LibGui 9.0.0+1.20.2 API

+

LibGui 9.1.0+1.20.2 API

Packages
diff --git a/libgui/io/github/cottonmc/cotton/gui/EmptyInventory.html b/libgui/io/github/cottonmc/cotton/gui/EmptyInventory.html index 9bae6ff..a3f67e6 100644 --- a/libgui/io/github/cottonmc/cotton/gui/EmptyInventory.html +++ b/libgui/io/github/cottonmc/cotton/gui/EmptyInventory.html @@ -2,7 +2,7 @@ -EmptyInventory (LibGui 9.0.0+1.20.2 API) +EmptyInventory (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/GuiDescription.html b/libgui/io/github/cottonmc/cotton/gui/GuiDescription.html index ce8ce0d..9d81658 100644 --- a/libgui/io/github/cottonmc/cotton/gui/GuiDescription.html +++ b/libgui/io/github/cottonmc/cotton/gui/GuiDescription.html @@ -2,7 +2,7 @@ -GuiDescription (LibGui 9.0.0+1.20.2 API) +GuiDescription (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/ItemSyncedGuiDescription.html b/libgui/io/github/cottonmc/cotton/gui/ItemSyncedGuiDescription.html index 88fc202..ff15358 100644 --- a/libgui/io/github/cottonmc/cotton/gui/ItemSyncedGuiDescription.html +++ b/libgui/io/github/cottonmc/cotton/gui/ItemSyncedGuiDescription.html @@ -2,7 +2,7 @@ -ItemSyncedGuiDescription (LibGui 9.0.0+1.20.2 API) +ItemSyncedGuiDescription (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html b/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html index 3014550..f979745 100644 --- a/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html +++ b/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html @@ -2,7 +2,7 @@ -PropertyDelegateHolder (LibGui 9.0.0+1.20.2 API) +PropertyDelegateHolder (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/SyncedGuiDescription.html b/libgui/io/github/cottonmc/cotton/gui/SyncedGuiDescription.html index 49637d1..50883a2 100644 --- a/libgui/io/github/cottonmc/cotton/gui/SyncedGuiDescription.html +++ b/libgui/io/github/cottonmc/cotton/gui/SyncedGuiDescription.html @@ -2,7 +2,7 @@ -SyncedGuiDescription (LibGui 9.0.0+1.20.2 API) +SyncedGuiDescription (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/ValidatedSlot.html b/libgui/io/github/cottonmc/cotton/gui/ValidatedSlot.html index de7004d..a49d79b 100644 --- a/libgui/io/github/cottonmc/cotton/gui/ValidatedSlot.html +++ b/libgui/io/github/cottonmc/cotton/gui/ValidatedSlot.html @@ -2,7 +2,7 @@ -ValidatedSlot (LibGui 9.0.0+1.20.2 API) +ValidatedSlot (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/BackgroundPainter.html b/libgui/io/github/cottonmc/cotton/gui/client/BackgroundPainter.html index e5b7830..dfacff2 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/BackgroundPainter.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/BackgroundPainter.html @@ -2,7 +2,7 @@ -BackgroundPainter (LibGui 9.0.0+1.20.2 API) +BackgroundPainter (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html b/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html index 8501788..1e3295d 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html @@ -2,7 +2,7 @@ -CottonClientScreen (LibGui 9.0.0+1.20.2 API) +CottonClientScreen (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.Positioner.html b/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.Positioner.html index 5280b31..a0598cb 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.Positioner.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.Positioner.html @@ -2,7 +2,7 @@ -CottonHud.Positioner (LibGui 9.0.0+1.20.2 API) +CottonHud.Positioner (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.html b/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.html index 1d05e5f..f920768 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/CottonHud.html @@ -2,7 +2,7 @@ -CottonHud (LibGui 9.0.0+1.20.2 API) +CottonHud (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.html b/libgui/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.html index c333d8c..5272426 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/CottonInventoryScreen.html @@ -2,7 +2,7 @@ -CottonInventoryScreen (LibGui 9.0.0+1.20.2 API) +CottonInventoryScreen (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/LibGui.html b/libgui/io/github/cottonmc/cotton/gui/client/LibGui.html index 8d7e09b..735baa2 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/LibGui.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/LibGui.html @@ -2,7 +2,7 @@ -LibGui (LibGui 9.0.0+1.20.2 API) +LibGui (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.html b/libgui/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.html index cc2929d..9f8fdd7 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/LightweightGuiDescription.html @@ -2,7 +2,7 @@ -LightweightGuiDescription (LibGui 9.0.0+1.20.2 API) +LightweightGuiDescription (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/NinePatchBackgroundPainter.html b/libgui/io/github/cottonmc/cotton/gui/client/NinePatchBackgroundPainter.html index fcf4f45..08539b9 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/NinePatchBackgroundPainter.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/NinePatchBackgroundPainter.html @@ -2,7 +2,7 @@ -NinePatchBackgroundPainter (LibGui 9.0.0+1.20.2 API) +NinePatchBackgroundPainter (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/Scissors.Frame.html b/libgui/io/github/cottonmc/cotton/gui/client/Scissors.Frame.html index 93883e1..23ccd01 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/Scissors.Frame.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/Scissors.Frame.html @@ -2,7 +2,7 @@ -Scissors.Frame (LibGui 9.0.0+1.20.2 API) +Scissors.Frame (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/Scissors.html b/libgui/io/github/cottonmc/cotton/gui/client/Scissors.html index 577f841..6477da5 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/Scissors.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/Scissors.html @@ -2,7 +2,7 @@ -Scissors (LibGui 9.0.0+1.20.2 API) +Scissors (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/ScreenDrawing.html b/libgui/io/github/cottonmc/cotton/gui/client/ScreenDrawing.html index a71586c..7a71e2f 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/ScreenDrawing.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/ScreenDrawing.html @@ -2,7 +2,7 @@ -ScreenDrawing (LibGui 9.0.0+1.20.2 API) +ScreenDrawing (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/package-summary.html b/libgui/io/github/cottonmc/cotton/gui/client/package-summary.html index 2a0322b..d3910af 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/package-summary.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/package-summary.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui.client (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui.client (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/client/package-tree.html b/libgui/io/github/cottonmc/cotton/gui/client/package-tree.html index 59decb8..941e30d 100644 --- a/libgui/io/github/cottonmc/cotton/gui/client/package-tree.html +++ b/libgui/io/github/cottonmc/cotton/gui/client/package-tree.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui.client Class Hierarchy (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui.client Class Hierarchy (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html b/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html index dac55ac..e49c956 100644 --- a/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html +++ b/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html @@ -2,7 +2,7 @@ -NetworkSide (LibGui 9.0.0+1.20.2 API) +NetworkSide (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.MessageReceiver.html b/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.MessageReceiver.html index 78bed42..bd8dab3 100644 --- a/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.MessageReceiver.html +++ b/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.MessageReceiver.html @@ -2,7 +2,7 @@ -ScreenNetworking.MessageReceiver (LibGui 9.0.0+1.20.2 API) +ScreenNetworking.MessageReceiver (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html b/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html index 6f47b4d..fa91e1e 100644 --- a/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html +++ b/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html @@ -2,7 +2,7 @@ -ScreenNetworking (LibGui 9.0.0+1.20.2 API) +ScreenNetworking (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/package-summary.html b/libgui/io/github/cottonmc/cotton/gui/networking/package-summary.html index 89dac36..4f04f0f 100644 --- a/libgui/io/github/cottonmc/cotton/gui/networking/package-summary.html +++ b/libgui/io/github/cottonmc/cotton/gui/networking/package-summary.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui.networking (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui.networking (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/package-tree.html b/libgui/io/github/cottonmc/cotton/gui/networking/package-tree.html index 77ea5f5..399fc99 100644 --- a/libgui/io/github/cottonmc/cotton/gui/networking/package-tree.html +++ b/libgui/io/github/cottonmc/cotton/gui/networking/package-tree.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui.networking Class Hierarchy (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui.networking Class Hierarchy (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/package-summary.html b/libgui/io/github/cottonmc/cotton/gui/package-summary.html index 6ed7ee0..a1c01db 100644 --- a/libgui/io/github/cottonmc/cotton/gui/package-summary.html +++ b/libgui/io/github/cottonmc/cotton/gui/package-summary.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/package-tree.html b/libgui/io/github/cottonmc/cotton/gui/package-tree.html index d3f2bba..abd95f3 100644 --- a/libgui/io/github/cottonmc/cotton/gui/package-tree.html +++ b/libgui/io/github/cottonmc/cotton/gui/package-tree.html @@ -2,7 +2,7 @@ -io.github.cottonmc.cotton.gui Class Hierarchy (LibGui 9.0.0+1.20.2 API) +io.github.cottonmc.cotton.gui Class Hierarchy (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html b/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html index 2b37d2d..eddb14e 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html @@ -2,7 +2,7 @@ -TooltipBuilder (LibGui 9.0.0+1.20.2 API) +TooltipBuilder (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.Direction.html b/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.Direction.html index 8417e91..5576c40 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.Direction.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.Direction.html @@ -2,7 +2,7 @@ -WAbstractSlider.Direction (LibGui 9.0.0+1.20.2 API) +WAbstractSlider.Direction (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.html b/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.html index 2508016..1a916c1 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WAbstractSlider.html @@ -2,7 +2,7 @@ -WAbstractSlider (LibGui 9.0.0+1.20.2 API) +WAbstractSlider (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WBar.Direction.html b/libgui/io/github/cottonmc/cotton/gui/widget/WBar.Direction.html index d83ab2a..29dab72 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WBar.Direction.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WBar.Direction.html @@ -2,7 +2,7 @@ -WBar.Direction (LibGui 9.0.0+1.20.2 API) +WBar.Direction (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WBar.html b/libgui/io/github/cottonmc/cotton/gui/widget/WBar.html index 9c7f748..27bfe80 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WBar.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WBar.html @@ -2,7 +2,7 @@ -WBar (LibGui 9.0.0+1.20.2 API) +WBar (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WBox.html b/libgui/io/github/cottonmc/cotton/gui/widget/WBox.html index 6291e9b..74a75a2 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WBox.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WBox.html @@ -2,7 +2,7 @@ -WBox (LibGui 9.0.0+1.20.2 API) +WBox (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WButton.html b/libgui/io/github/cottonmc/cotton/gui/widget/WButton.html index 1a2ba6d..6e2a381 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WButton.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WButton.html @@ -2,7 +2,7 @@ -WButton (LibGui 9.0.0+1.20.2 API) +WButton (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WCardPanel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WCardPanel.html index e632102..15669da 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WCardPanel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WCardPanel.html @@ -2,7 +2,7 @@ -WCardPanel (LibGui 9.0.0+1.20.2 API) +WCardPanel (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WClippedPanel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WClippedPanel.html index f819f32..437fc9a 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WClippedPanel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WClippedPanel.html @@ -2,7 +2,7 @@ -WClippedPanel (LibGui 9.0.0+1.20.2 API) +WClippedPanel (LibGui 9.1.0+1.20.2 API) @@ -81,7 +81,7 @@

Class WClippedPanel

Direct Known Subclasses:
-
WListPanel, WScrollPanel
+
WListPanel

public class WClippedPanel diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WDynamicLabel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WDynamicLabel.html index 0d5021b..e9e2187 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WDynamicLabel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WDynamicLabel.html @@ -2,7 +2,7 @@ -WDynamicLabel (LibGui 9.0.0+1.20.2 API) +WDynamicLabel (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WGridPanel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WGridPanel.html index 236d25a..793d6ce 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WGridPanel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WGridPanel.html @@ -2,7 +2,7 @@ -WGridPanel (LibGui 9.0.0+1.20.2 API) +WGridPanel (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WItem.html b/libgui/io/github/cottonmc/cotton/gui/widget/WItem.html index 2f1b9c6..50ef7f6 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WItem.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WItem.html @@ -2,7 +2,7 @@ -WItem (LibGui 9.0.0+1.20.2 API) +WItem (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.ChangeListener.html b/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.ChangeListener.html index 47f92d6..722769f 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.ChangeListener.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.ChangeListener.html @@ -2,7 +2,7 @@ -WItemSlot.ChangeListener (LibGui 9.0.0+1.20.2 API) +WItemSlot.ChangeListener (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.html b/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.html index 0775025..7f20b57 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WItemSlot.html @@ -2,7 +2,7 @@ -WItemSlot (LibGui 9.0.0+1.20.2 API) +WItemSlot (LibGui 9.1.0+1.20.2 API) @@ -264,94 +264,106 @@

Method Summary

 
boolean
- +
-
Returns whether items can be inserted into this slot.
+
Checks whether icons should be rendered when the first slot of this widget + contains an item.
boolean
- +
-
Returns true if the contents of this WItemSlot can be modified by players.
+
Returns whether items can be inserted into this slot.
boolean
- +
+
Returns true if the contents of this WItemSlot can be modified by players.
+
+
boolean
+ +
Returns whether items can be taken from this slot.
-
static WItemSlot
-
of(Inventory inventory, - int index)
-
 
static WItemSlot
-
of(Inventory inventory, +
of(Inventory inventory, + int index)
+
 
+
static WItemSlot
+
of(Inventory inventory, int startIndex, int slotsWide, int slotsHigh)
-
 
-
static WItemSlot
- -
+
 
+
static WItemSlot
+ +
Creates a 9x3 slot widget from the "main" part of a player inventory.
-
void
- -
-
Notifies this widget that it has lost focus
-
void
- +
+
Notifies this widget that it has lost focus
+
+
void
+ +
Notifies this widget that it won't be drawn and hides any visible peers of itself and its children.
- -
onKeyPressed(int ch, + +
onKeyPressed(int ch, int key, int modifiers)
-
+
Notifies this widget that a key has been pressed.
- -
onMouseMove(int x, + +
onMouseMove(int x, int y)
-
+
Notifies this widget that the mouse has been moved while inside its bounds.
-
void
- -
+
void
+ +
Notifies this widget that it is visible and shows any hidden peers of itself and its children.
-
static WItemSlot
-
outputOf(Inventory inventory, +
static WItemSlot
+
outputOf(Inventory inventory, int index)
-
 
-
void
-
paint(DrawContext context, +
 
+
void
+
paint(DrawContext context, int x, int y, int mouseX, int mouseY)
-
+
Paints this widget.
-
void
- -
+
void
+ +
Sets this item slot's background painter.
- - -
+ + +
Deprecated, for removal: This API element is subject to removal in a future version.
+ + +
+
Sets the icon to this slot.
+
- +
setIconOnlyPaintedForEmptySlots(boolean iconOnlyPaintedForEmptySlots)
-
Sets the icon to this slot.
+
Sets whether icons should be rendered when the first slot of this widget + contains an item.
@@ -551,6 +563,38 @@

setIcon

  • +
    +

    isIconOnlyPaintedForEmptySlots

    +
    public boolean isIconOnlyPaintedForEmptySlots()
    +
    Checks whether icons should be rendered when the first slot of this widget + contains an item. + +

    This property is true by default.

    +
    +
    Returns:
    +
    true if the icon should always be painted, false otherwise
    +
    Since:
    +
    9.1.0
    +
    +
    +
  • +
  • +
    +

    setIconOnlyPaintedForEmptySlots

    +
    public WItemSlot setIconOnlyPaintedForEmptySlots(boolean iconOnlyPaintedForEmptySlots)
    +
    Sets whether icons should be rendered when the first slot of this widget + contains an item.
    +
    +
    Parameters:
    +
    iconOnlyPaintedForEmptySlots - true if the icon should always be painted, false otherwise
    +
    Returns:
    +
    this item slot
    +
    Since:
    +
    9.1.0
    +
    +
    +
  • +
  • isModifiable

    public boolean isModifiable()
    diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WLabel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WLabel.html index a2815ae..55160cd 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WLabel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WLabel.html @@ -2,7 +2,7 @@ -WLabel (LibGui 9.0.0+1.20.2 API) +WLabel (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.LabelUpdater.html b/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.LabelUpdater.html index 91e3aae..11d028a 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.LabelUpdater.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.LabelUpdater.html @@ -2,7 +2,7 @@ -WLabeledSlider.LabelUpdater (LibGui 9.0.0+1.20.2 API) +WLabeledSlider.LabelUpdater (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.html b/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.html index 848e73b..bcddb2a 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WLabeledSlider.html @@ -2,7 +2,7 @@ -WLabeledSlider (LibGui 9.0.0+1.20.2 API) +WLabeledSlider (LibGui 9.1.0+1.20.2 API) diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/WListPanel.html b/libgui/io/github/cottonmc/cotton/gui/widget/WListPanel.html index 2e6ba61..6dd9baf 100644 --- a/libgui/io/github/cottonmc/cotton/gui/widget/WListPanel.html +++ b/libgui/io/github/cottonmc/cotton/gui/widget/WListPanel.html @@ -2,7 +2,7 @@ -WListPanel (LibGui 9.0.0+1.20.2 API) +WListPanel (LibGui 9.1.0+1.20.2 API) @@ -127,7 +127,11 @@

    Field Summary

  • protected int
    -
     
    +
    +
    Deprecated, for removal: This API element is subject to removal in a future version. +
    Replaced with insets and gap.
    +
    +
    protected WScrollBar
    @@ -178,46 +182,71 @@

    Method Summary

    Modifier and Type
    Method
    Description
    - - +
    void
    +
    -
    Gets the WScrollBar attached to this panel.
    +
    Adds the default background painters to this widget and all children.
    -
    void
    - +
    int
    + +
    +
    Returns the gap between list items.
    +
    + + +
    +
    Returns the layout insets used for the contents of this list.
    +
    + +
    +
    Gets the WScrollBar attached to this panel.
    +
    +
    void
    + +
    Uses this Panel's layout rules to reposition and resize components to fit nicely in the panel.
    - -
    onMouseScroll(int x, + +
    onMouseScroll(int x, int y, double horizontalAmount, double verticalAmount)
    -
    +
    Notifies this widget that the mouse has been scrolled inside its bounds.
    -
    void
    -
    paint(DrawContext context, +
    void
    +
    paint(DrawContext context, int x, int y, int mouseX, int mouseY)
    -
    +
    Paints this widget.
    + +
    setGap(int gap)
    +
    +
    Sets the gap between list items.
    +
    void
    Sets the host of this widget and all its children without creating peers.
    -
    setListItemHeight(int height)
    +
    setInsets(Insets insets)
    -
    Sets the height of this list's items to a constant value.
    +
    Sets the layout insets used for the contents of this list.
    -
    void
    - + +
    setListItemHeight(int height)
    +
    Sets the height of this list's items to a constant value.
    +
    +
    void
    + +
    Creates component peers and initializes animation data for this Widget and all its children.
    @@ -225,7 +254,7 @@

    Method Summary

    Methods inherited from class io.github.cottonmc.cotton.gui.widget.WPanel

    -addPainters, canResize, expandToFit, expandToFit, getBackgroundPainter, hit, onHidden, onShown, remove, setBackgroundPainter, streamChildren, tick, toString
    +canResize, expandToFit, expandToFit, getBackgroundPainter, hit, onHidden, onShown, remove, setBackgroundPainter, streamChildren, tick, toString
    @@ -294,7 +323,11 @@

    fixedHeight

  • margin

    -
    protected int margin
    +
    @Deprecated(forRemoval=true) +protected int margin
    +
    Deprecated, for removal: This API element is subject to removal in a future version. +
    Replaced with insets and gap.
    +
  • @@ -399,6 +432,22 @@

    setHost

  • +
    +

    addPainters

    +
    public void addPainters()
    +
    Description copied from class: WPanel
    +
    Adds the default background painters to this widget and all children. + +

    Always called before GuiDescription.addPainters() to allow users to modify painters. + +

    Subclasses should call super.addPainters() to ensure that children have proper default painters.

    +
    +
    Overrides:
    +
    addPainters in class WPanel
    +
    +
    +
  • +
  • layout

    public void layout()
    @@ -458,6 +507,62 @@

    getScrollBar

  • +
  • +
    +

    getInsets

    +
    public Insets getInsets()
    +
    Returns the layout insets used for the contents of this list.
    +
    +
    Returns:
    +
    the layout insets used for the contents of this list
    +
    Since:
    +
    9.1.0
    +
    +
    +
  • +
  • +
    +

    setInsets

    +
    public WListPanel<D,W> setInsets(Insets insets)
    +
    Sets the layout insets used for the contents of this list.
    +
    +
    Parameters:
    +
    insets - the layout insets
    +
    Returns:
    +
    this list
    +
    Since:
    +
    9.1.0
    +
    +
    +
  • +
  • +
    +

    getGap

    +
    public int getGap()
    +
    Returns the gap between list items.
    +
    +
    Returns:
    +
    the gap between list items
    +
    Since:
    +
    9.1.0
    +
    +
    +
  • +
  • +
    +

    setGap

    +
    public WListPanel<D,W> setGap(int gap)
    +
    Sets the gap between list items.
    +
    +
    Parameters:
    +
    gap - the gap, must be non-negative
    +
    Returns:
    +
    this list
    +
    Since:
    +
    9.1.0
    +
    +
    +