LibGui 8.1.0+1.20.1 API
+LibGui 9.0.0+1.20.2 API
Class EmptyInventory
+implements Inventory
diff --git a/libgui/allclasses-index.html b/libgui/allclasses-index.html index 82b9554..58f266d 100644 --- a/libgui/allclasses-index.html +++ b/libgui/allclasses-index.html @@ -2,7 +2,7 @@
-Texture
's type.PropertyDelegate
.PropertyDelegate
.WBar
, representing where the bar will
grown when its field increases.Supplier<String>
.WScrollBar
attached to this panel.Texture
's type.type
record component.PropertyDelegate
.PropertyDelegate
.Text
to the WBar.Text
to the WBar.field_42619, MAX_COUNT_PER_STACK
field_42619, MAX_COUNT_PER_STACK
boolean
canPlayerUse(PlayerEntity player)
canPlayerUse(PlayerEntity player)
void
clear()
getStack(int slot)
boolean
void
removeStack(int slot)
removeStack(int slot,
int count)
void
int
size()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, isValid, onClose, onOpen
canTransferTo, containsAny, containsAny, count, getMaxCountPerStack, isValid, onClose, onOpen
removeStack
in interface Inventory
removeStack
in interface Inventory
removeStack
in interface Inventory
removeStack
in interface Inventory
canPlayerUse
in interface Inventory
canPlayerUse
in interface Inventory
setPropertyDelegate(PropertyDelegate delegate)
setPropertyDelegate(PropertyDelegate delegate)
SyncedGuiDescription
for an item stack
- in an inventory.
+SyncedGuiDescription
for an item stack
+ in an inventory.
- The owning item is represented with a StackReference
, which can be
+
The owning item is represented with a StackReference
, which can be
an item in an entity's inventory or a block's container, or any other reference
to an item stack.
@@ -110,12 +110,12 @@
protected final StackReference
protected final StackReference
protected final ItemStack
protected final ItemStack
blockInventory, darkTitleColor, focus, fullscreen, playerInventory, propertyDelegate, rootPanel, titleAlignment, titleColor, titleVisible, world
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
ItemSyncedGuiDescription(ScreenHandlerType<?> type,
+ItemSyncedGuiDescription(ScreenHandlerType<?> type,
int syncId,
- PlayerInventory playerInventory,
- StackReference owner)
+ PlayerInventory playerInventory,
+ StackReference owner)
ItemSyncedGuiDescription
.boolean
canUse(PlayerEntity entity)
canUse(PlayerEntity entity)
addPainters, addSlotPeer, createPlayerInventoryPanel, createPlayerInventoryPanel, createPlayerInventoryPanel, getBlockInventory, getBlockInventory, getBlockPropertyDelegate, getBlockPropertyDelegate, getFocus, getNetworkSide, getPacketSender, getPropertyDelegate, getRootPanel, getTitleAlignment, getTitleColor, getTitlePos, isFocused, isFullscreen, isTitleVisible, onClosed, quickMove, releaseFocus, requestFocus, setFullscreen, setPropertyDelegate, setRootPanel, setTitleAlignment, setTitleColor, setTitleColor, setTitlePos, setTitleVisible
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ItemSyncedGuiDescription
.The default implementation for ItemSyncedGuiDescription
returns true
if and only if
- the current owning item stack is fully equal
+ the current owning item stack is fully equal
to the original owner.
If the item NBT is intended to change, subclasses should override this method to only check diff --git a/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html b/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html index 2f8e86b..3014550 100644 --- a/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html +++ b/libgui/io/github/cottonmc/cotton/gui/PropertyDelegateHolder.html @@ -2,7 +2,7 @@
-On the client, the returned property delegate must have a working implementation of
- PropertyDelegate.set(int, int)
.
PropertyDelegate.set(int, int)
.protected Inventory
protected Inventory
protected int
protected boolean
protected PlayerInventory
protected PlayerInventory
protected PropertyDelegate
protected PropertyDelegate
protected WPanel
protected boolean
protected World
protected World
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
SyncedGuiDescription(ScreenHandlerType<?> type,
+SyncedGuiDescription(ScreenHandlerType<?> type,
int syncId,
- PlayerInventory playerInventory)
+ PlayerInventory playerInventory)
SyncedGuiDescription(ScreenHandlerType<?> type,
+SyncedGuiDescription(ScreenHandlerType<?> type,
int syncId,
- PlayerInventory playerInventory,
- @Nullable Inventory blockInventory,
- @Nullable PropertyDelegate propertyDelegate)
+ PlayerInventory playerInventory,
+ @Nullable Inventory blockInventory,
+ @Nullable PropertyDelegate propertyDelegate)
boolean
canUse(PlayerEntity entity)
canUse(PlayerEntity entity)
static Inventory
static Inventory
static Inventory
getBlockInventory(ScreenHandlerContext ctx,
+static Inventory
+getBlockInventory(ScreenHandlerContext ctx,
int size)
Gets the block inventory at the context.
-static PropertyDelegate
-
+static PropertyDelegate
+
Gets the property delegate at the context.
-static PropertyDelegate
-getBlockPropertyDelegate(ScreenHandlerContext ctx,
+static PropertyDelegate
+getBlockPropertyDelegate(ScreenHandlerContext ctx,
int size)
Gets the property delegate at the context.
@@ -242,7 +242,7 @@ Method Summary
Gets the packet sender corresponding to this GUI's network side.
-
+
Gets the object which manages the integer properties used by WBars and such.
@@ -279,10 +279,10 @@ Method Summary
Gets whether the title of this GUI should be rendered by the screen.
void
-onClosed(PlayerEntity player)
+onClosed(PlayerEntity player)
-
-quickMove(PlayerEntity player,
+
+quickMove(PlayerEntity player,
int index)
void
@@ -301,7 +301,7 @@ Method Summary
Sets whether this GUI is fullscreen.
-setPropertyDelegate(PropertyDelegate delegate)
+setPropertyDelegate(PropertyDelegate delegate)
Sets the object which manages the integer properties used by WBars
@@ -338,8 +338,8 @@ Method Summary
-Methods inherited from class net.minecraft.screen.ScreenHandler
-addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
+Methods inherited from class net.minecraft.screen.ScreenHandler
+addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
type
- the ScreenHandlerType
of this GUI descriptiontype
- the ScreenHandlerType
of this GUI descriptionsyncId
- the current sync IDplayerInventory
- the player inventory of the player viewing this screentype
- the ScreenHandlerType
of this GUI descriptiontype
- the ScreenHandlerType
of this GUI descriptionsyncId
- the current sync IDplayerInventory
- the player inventory of the player viewing this screenblockInventory
- the block inventory of a corresponding container block, or null if not found or applicablepropertyDelegate
- a property delegate whose properties, if any, will automatically be addedpropertyDelegate
- a property delegate whose properties, if any, will automatically be addedquickMove
in class ScreenHandler
quickMove
in class ScreenHandler
GuiDescription
GuiDescription
If no inventory is found, returns EmptyInventory.INSTANCE
.
@@ -671,7 +671,7 @@
If no property delegate is found, returns an empty property delegate with no properties. @@ -715,7 +715,7 @@
canUse
in class ScreenHandler
canUse
in class ScreenHandler
onClosed
in class ScreenHandler
onClosed
in class ScreenHandler
ValidatedSlot(Inventory inventory,
+ValidatedSlot(Inventory inventory,
int index,
int x,
int y)
@@ -140,19 +140,19 @@ Method Summary
Adds a change listener to this slot.
boolean
boolean
canTakeItems(PlayerEntity player)
canTakeItems(PlayerEntity player)
getStack()
boolean
void
setInputFilter(Predicate)
void
setInputFilter(Predicate<ItemStack> inputFilter)
setInputFilter(Predicate<ItemStack> inputFilter)
void
setOutputFilter(Predicate<ItemStack> outputFilter)
setOutputFilter(Predicate<ItemStack> outputFilter)
canBeHighlighted, canTakePartial, getBackgroundSprite, getIndex, getMaxItemCount, getMaxItemCount, hasStack, insertStack, insertStack, onCrafted, onCrafted, onQuickTransfer, onTake, onTakeItem, setStack, setStackNoCallbacks, takeStack, takeStackRange, tryTakeStackRange
canBeHighlighted, canTakePartial, getBackgroundSprite, getIndex, getMaxItemCount, getMaxItemCount, hasStack, insertStack, insertStack, onCrafted, onCrafted, onQuickTransfer, onTake, onTakeItem, setStack, setStack, setStackNoCallbacks, takeStack, takeStackRange, tryTakeStackRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTakeItems
in class Slot
canTakeItems
in class Slot
getInputFilter()
setInputFilter(Predicate)
static BackgroundPainter
createLightDarkVariants(BackgroundPainter light,
- BackgroundPainter dark)
createGuiSprite(Identifier texture)
light
or the dark
background painter
- depending on the current setting.static NinePatchBackgroundPainter
createNinePatch(Texture texture,
- Consumer<juuxel.libninepatch.NinePatch.Builder<Identifier>> configurator)
static BackgroundPainter
createLightDarkVariants(BackgroundPainter light,
+ BackgroundPainter dark)
light
or the dark
background painter
+ depending on the current setting.static NinePatchBackgroundPainter
createNinePatch(Identifier texture)
createNinePatch(Texture texture,
+ Consumer<juuxel.libninepatch.NinePatch.Builder<Identifier>> configurator)
static NinePatchBackgroundPainter
createNinePatch(Identifier texture)
void
paintBackground(DrawContext context,
+void
+paintBackground(DrawContext context,
int left,
int top,
WWidget panel)
-
+
Paint the specified panel to the screen.
@@ -178,8 +183,8 @@ VANILLA
The VANILLA
background painter draws a vanilla-like GUI panel using nine-patch textures.
- This background painter uses libgui:textures/widget/panel_light.png
as the light texture and
- libgui:textures/widget/panel_dark.png
as the dark texture.
+
This background painter uses libgui:textures/gui/sprites/widget/panel_light.png
as the light texture and
+ libgui:textures/gui/sprites/widget/panel_dark.png
as the dark texture.
This background painter is the default painter for root panels.
* You can override GuiDescription.addPainters()
to customize the painter yourself.
@@ -209,7 +214,7 @@ Method Details
paintBackground
-void paintBackground(DrawContext context,
+
@@ -260,7 +265,7 @@ createColorful
createNinePatch
-
+
Creates a new nine-patch background painter.
The resulting painter has a corner size of 4 px and a corner UV of 0.25.
@@ -284,14 +289,19 @@ createNinePatch
createNinePatch
static NinePatchBackgroundPainter createNinePatch(Texture texture,
- Consumer<juuxel.libninepatch.NinePatch.Builder<Identifier>> configurator)
-Creates a new nine-patch background painter with a custom configuration.
+ Consumer<juuxel.libninepatch.NinePatch.Builder<Identifier>> configurator)
+Creates a new nine-patch background painter with a custom configuration.
+
+ This method cannot be used for GUI sprites. Instead, you can use the
+ vanilla nine-slice mechanism or use a standalone texture referring to the same file.
- Parameters:
texture
- the background painter texture
configurator
- a consumer that configures the NinePatch.Builder
- Returns:
- the created nine-patch background painter
+- Throws:
+IllegalArgumentException
- when the texture is not standalone
- Since:
- 4.0.0
- See Also:
@@ -323,6 +333,24 @@ createLightDarkVariants
+
+
+createGuiSprite
+
+Creates a background painter that uses a texture from the GUI atlas.
+
+ This method can be used to draw tiled or nine-slice GUI sprites from resource packs
+ as a simpler and more data-driven alternative to createNinePatch(Identifier)
.
+
+- Parameters:
+texture
- the texture ID
+- Returns:
+- a new background painter that uses a GUI sprite
+- Since:
+- 9.0.0
+
+
+
diff --git a/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html b/libgui/io/github/cottonmc/cotton/gui/client/CottonClientScreen.html
index bc536bf..8501788 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 8.1.0+1.20.1 API)
+CottonClientScreen (LibGui 9.0.0+1.20.2 API)
@@ -72,8 +72,8 @@
Class CottonClientScreen
io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
, Drawable
, Element
, Navigable
, ParentElement
io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
, Drawable
, Element
, Navigable
, ParentElement
Screen.SelectedElementNarrationData
Screen.SelectedElementNarrationData
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
MAX_DOUBLE_CLICK_INTERVAL
MAX_DOUBLE_CLICK_INTERVAL
CottonClientScreen(GuiDescription description)
CottonClientScreen(Text title,
+CottonClientScreen(Text title,
GuiDescription description)
protected void
boolean
charTyped(char ch,
@@ -214,15 +214,16 @@ Method Summary
int mouseButton)
boolean
mouseScrolled(double mouseX,
+mouseScrolled(double mouseX,
double mouseY,
- double amount)
+ double horizontalAmount,
+ double verticalAmount)
void
removed()
void
render(DrawContext context,
+render(DrawContext context,
int mouseX,
int mouseY,
float partialTicks)
@@ -243,20 +244,20 @@ Method Summary
addDrawable, addDrawableChild, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
addDrawable, addDrawableChild, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackground, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
getFocused, isDragging, setDragging, setFocused
getFocused, isDragging, setDragging, setFocused
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNavigationOrder
getNavigationOrder
focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, setFocused
focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, setFocused
render
in interface Drawable
render
in interface Drawable
render
in class Screen
render
in class Screen
mouseClicked
in interface Element
mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in interface ParentElement
mouseReleased
in interface Element
mouseReleased
in interface Element
mouseReleased
in interface ParentElement
mouseReleased
in interface ParentElement
mouseDragged
in interface Element
mouseDragged
in interface Element
mouseDragged
in interface ParentElement
mouseDragged
in interface ParentElement
mouseScrolled
in interface Element
mouseScrolled
in interface Element
mouseScrolled
in interface ParentElement
mouseScrolled
in interface ParentElement
mouseMoved
in interface Element
mouseMoved
in interface Element
charTyped
in interface Element
charTyped
in interface Element
charTyped
in interface ParentElement
charTyped
in interface ParentElement
keyPressed
in interface Element
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in interface ParentElement
keyPressed
in class Screen
keyPressed
in class Screen
keyReleased
in interface Element
keyReleased
in interface Element
keyReleased
in interface ParentElement
keyReleased
in interface ParentElement
addElementNarrations
in class Screen
addElementNarrations
in class Screen
io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
, Drawable
, Element
, Navigable
, ParentElement
, ScreenHandlerProvider<T>
io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl
, Drawable
, Element
, Navigable
, ParentElement
, ScreenHandlerProvider<T>
SyncedGuiDescription
.Screen.SelectedElementNarrationData
Screen.SelectedElementNarrationData
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, field_32322, focusedSlot, handler, playerInventoryTitle, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, y
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, field_32322, focusedSlot, handler, playerInventoryTitle, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, y
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
MAX_DOUBLE_CLICK_INTERVAL
MAX_DOUBLE_CLICK_INTERVAL
CottonInventoryScreen(T description,
- PlayerEntity player)
CottonInventoryScreen(T description,
- PlayerEntity player,
- Text title)
CottonInventoryScreen(T description,
- PlayerInventory inventory)
CottonInventoryScreen(T description,
- PlayerInventory inventory,
- Text title)
protected void
boolean
charTyped(char ch,
int keyCode)
protected void
drawBackground(DrawContext context,
+drawBackground(DrawContext context,
float partialTicks,
int mouseX,
int mouseY)
protected void
-drawForeground(DrawContext context,
+drawForeground(DrawContext context,
int mouseX,
int mouseY)
@@ -239,15 +239,16 @@ Method Summary
int mouseButton)
boolean
-mouseScrolled(double mouseX,
+mouseScrolled(double mouseX,
double mouseY,
- double amount)
+ double horizontalAmount,
+ double verticalAmount)
void
removed()
void
-render(DrawContext context,
+render(DrawContext context,
int mouseX,
int mouseY,
float partialTicks)
@@ -268,23 +269,23 @@ Method Summary
close, drawMouseoverTooltip, drawSlotHighlight, endTouchDrag, getScreenHandler, getTooltipFromItem, handleHotbarKeyPressed, isClickOutsideBounds, isPointWithinBounds, onMouseClick, tick
close, drawMouseoverTooltip, drawSlotHighlight, endTouchDrag, getScreenHandler, getTooltipFromItem, handleHotbarKeyPressed, isClickOutsideBounds, isPointWithinBounds, onMouseClick, renderBackground, tick
addDrawable, addDrawableChild, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenError
addDrawable, addDrawableChild, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenError
getFocused, isDragging, setDragging, setFocused
getFocused, isDragging, setDragging, setFocused
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNavigationOrder
getNavigationOrder
focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, setFocused
focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, setFocused
init
in class HandledScreen<T extends SyncedGuiDescription>
init
in class HandledScreen<T extends SyncedGuiDescription>
removed
in class HandledScreen<T extends SyncedGuiDescription>
removed
in class HandledScreen<T extends SyncedGuiDescription>
shouldPause
in class HandledScreen<T extends SyncedGuiDescription>
shouldPause
in class HandledScreen<T extends SyncedGuiDescription>
mouseClicked
in interface Element
mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in interface ParentElement
mouseClicked
in class HandledScreen<T extends SyncedGuiDescription>
mouseClicked
in class HandledScreen<T extends SyncedGuiDescription>
mouseReleased
in interface Element
mouseReleased
in interface Element
mouseReleased
in interface ParentElement
mouseReleased
in interface ParentElement
mouseReleased
in class HandledScreen<T extends SyncedGuiDescription>
mouseReleased
in class HandledScreen<T extends SyncedGuiDescription>
mouseDragged
in interface Element
mouseDragged
in interface Element
mouseDragged
in interface ParentElement
mouseDragged
in interface ParentElement
mouseDragged
in class HandledScreen<T extends SyncedGuiDescription>
mouseDragged
in class HandledScreen<T extends SyncedGuiDescription>
mouseScrolled
in interface Element
mouseScrolled
in interface Element
mouseScrolled
in interface ParentElement
mouseScrolled
in interface ParentElement
mouseMoved
in interface Element
mouseMoved
in interface Element
charTyped
in interface Element
charTyped
in interface Element
charTyped
in interface ParentElement
charTyped
in interface ParentElement
keyPressed
in interface Element
keyPressed
in interface Element
keyPressed
in interface ParentElement
keyPressed
in interface ParentElement
keyPressed
in class HandledScreen<T extends SyncedGuiDescription>
keyPressed
in class HandledScreen<T extends SyncedGuiDescription>
keyReleased
in interface Element
keyReleased
in interface Element
keyReleased
in interface ParentElement
keyReleased
in interface ParentElement
drawBackground
in class HandledScreen<T extends SyncedGuiDescription>
drawBackground
in class HandledScreen<T extends SyncedGuiDescription>
render
in interface Drawable
render
in interface Drawable
render
in class HandledScreen<T extends SyncedGuiDescription>
render
in class HandledScreen<T extends SyncedGuiDescription>
drawForeground
in class HandledScreen<T extends SyncedGuiDescription>
drawForeground
in class HandledScreen<T extends SyncedGuiDescription>
handledScreenTick
in class HandledScreen<T extends SyncedGuiDescription>
handledScreenTick
in class HandledScreen<T extends SyncedGuiDescription>
addElementNarrations
in class Screen
addElementNarrations
in class Screen
protected boolean
protected PropertyDelegate
protected PropertyDelegate
protected WPanel
setPropertyDelegate(PropertyDelegate delegate)
setPropertyDelegate(PropertyDelegate delegate)
GuiDescription
GuiDescription
NinePatchBackgroundPainter(juuxel.libninepatch.NinePatch<Identifier> ninePatch)
NinePatchBackgroundPainter(juuxel.libninepatch.NinePatch<Identifier> ninePatch)
void
paintBackground(DrawContext context,
+paintBackground(DrawContext context,
int left,
int top,
WWidget panel)
@@ -200,7 +200,7 @@ Constructor Details
NinePatchBackgroundPainter
-
+
@@ -284,7 +284,7 @@ setPadding
paintBackground
-public void paintBackground(DrawContext context,
+
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 d5c3ae0..93883e1 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 8.1.0+1.20.1 API)
+Scissors.Frame (LibGui 9.0.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 1c77692..577f841 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 8.1.0+1.20.1 API)
+Scissors (LibGui 9.0.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 b93d69a..a71586c 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 8.1.0+1.20.1 API)
+ScreenDrawing (LibGui 9.0.0+1.20.2 API)
@@ -98,7 +98,7 @@ Method Summary
float opacity)
static void
-coloredRect(DrawContext context,
+coloredRect(DrawContext context,
int left,
int top,
int width,
@@ -108,14 +108,14 @@ Method Summary
Draws an untextured rectangle of the specified RGB color.
static void
-drawBeveledPanel(DrawContext context,
+drawBeveledPanel(DrawContext context,
int x,
int y)
Draws a default-sized recessed itemslot panel
static void
-drawBeveledPanel(DrawContext context,
+drawBeveledPanel(DrawContext context,
int x,
int y,
int width,
@@ -124,7 +124,7 @@ Method Summary
Draws a default-color recessed itemslot panel of variable size
static void
-drawBeveledPanel(DrawContext context,
+drawBeveledPanel(DrawContext context,
int x,
int y,
int width,
@@ -136,7 +136,7 @@ Method Summary
Draws a generalized-case beveled panel.
static void
-drawGuiPanel(DrawContext context,
+drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -145,7 +145,7 @@ Method Summary
Draws a beveled, round rectangle that is substantially similar to default Minecraft UI panels.
static void
-drawGuiPanel(DrawContext context,
+drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -155,7 +155,7 @@ Method Summary
Draws a beveled, round, and colored rectangle that is substantially similar to default Minecraft UI panels.
static void
-drawGuiPanel(DrawContext context,
+drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -168,7 +168,7 @@ Method Summary
Draws a beveled, round rectangle with custom edge colors that is substantially similar to default Minecraft UI panels.
static void
-drawString(DrawContext context,
+drawString(DrawContext context,
String s,
int x,
int y,
@@ -177,7 +177,7 @@ Method Summary
Draws a left-aligned string.
static void
-drawString(DrawContext context,
+drawString(DrawContext context,
String s,
HorizontalAlignment align,
int x,
@@ -188,8 +188,8 @@ Method Summary
Draws a string with a custom alignment.
static void
-drawString(DrawContext context,
- OrderedText text,
+drawString(DrawContext context,
+ OrderedText text,
int x,
int y,
int color)
@@ -197,8 +197,8 @@ Method Summary
Draws a left-aligned text component.
static void
-drawString(DrawContext context,
- OrderedText text,
+drawString(DrawContext context,
+ OrderedText text,
HorizontalAlignment align,
int x,
int y,
@@ -208,7 +208,7 @@ Method Summary
Draws a text component with a custom alignment.
static void
-drawStringWithShadow(DrawContext context,
+drawStringWithShadow(DrawContext context,
String s,
HorizontalAlignment align,
int x,
@@ -219,8 +219,8 @@ Method Summary
Draws a shadowed string.
static void
-drawStringWithShadow(DrawContext context,
- OrderedText text,
+drawStringWithShadow(DrawContext context,
+ OrderedText text,
HorizontalAlignment align,
int x,
int y,
@@ -230,8 +230,8 @@ Method Summary
Draws a shadowed text component.
static void
-drawTextHover(DrawContext context,
- @Nullable Style textStyle,
+drawTextHover(DrawContext context,
+ @Nullable Style textStyle,
int x,
int y)
@@ -242,23 +242,23 @@ Method Summary
float amount)
static void
-texturedGuiRect(DrawContext context,
+texturedGuiRect(DrawContext context,
int left,
int top,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color)
Draws a textured rectangle with UV values based on the width and height.
static void
-texturedGuiRect(DrawContext context,
+texturedGuiRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int textureX,
int textureY,
int color)
@@ -266,7 +266,7 @@ Method Summary
Draws a textured rectangle with UV values based on the width and height.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
@@ -277,7 +277,7 @@ Method Summary
Draws a textured rectangle.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
@@ -289,12 +289,12 @@ Method Summary
Draws a textured rectangle.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
float u1,
float v1,
float u2,
@@ -304,12 +304,12 @@ Method Summary
Draws a textured rectangle.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
float u1,
float v1,
float u2,
@@ -320,23 +320,23 @@ Method Summary
Draws a textured rectangle.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color)
Draws a textured rectangle.
static void
-texturedRect(DrawContext context,
+texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color,
float opacity)
@@ -362,12 +362,12 @@ Method Details
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color)
Draws a textured rectangle.
@@ -385,12 +385,12 @@ texturedRect
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color,
float opacity)
Draws a textured rectangle.
@@ -412,12 +412,12 @@ texturedRect
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
float u1,
float v1,
float u2,
@@ -443,7 +443,7 @@ texturedRect
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
@@ -468,7 +468,7 @@ texturedRect
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
@@ -495,12 +495,12 @@ texturedRect
texturedRect
-public static void texturedRect(DrawContext context,
+public static void texturedRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
float u1,
float v1,
float u2,
@@ -530,12 +530,12 @@ texturedRect
texturedGuiRect
-public static void texturedGuiRect(DrawContext context,
+public static void texturedGuiRect(DrawContext context,
int x,
int y,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int textureX,
int textureY,
int color)
@@ -559,12 +559,12 @@ texturedGuiRect
texturedGuiRect
-public static void texturedGuiRect(DrawContext context,
+public static void texturedGuiRect(DrawContext context,
int left,
int top,
int width,
int height,
- Identifier texture,
+ Identifier texture,
int color)
Draws a textured rectangle with UV values based on the width and height.
@@ -584,7 +584,7 @@ texturedGuiRect
coloredRect
-public static void coloredRect(DrawContext context,
+public static void coloredRect(DrawContext context,
int left,
int top,
int width,
@@ -596,7 +596,7 @@ coloredRect
drawGuiPanel
-public static void drawGuiPanel(DrawContext context,
+public static void drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -615,7 +615,7 @@ drawGuiPanel
drawGuiPanel
-public static void drawGuiPanel(DrawContext context,
+public static void drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -636,7 +636,7 @@ drawGuiPanel
drawGuiPanel
-public static void drawGuiPanel(DrawContext context,
+public static void drawGuiPanel(DrawContext context,
int x,
int y,
int width,
@@ -663,7 +663,7 @@ drawGuiPanel
drawBeveledPanel
-public static void drawBeveledPanel(DrawContext context,
+
Draws a default-sized recessed itemslot panel
@@ -672,7 +672,7 @@ drawBeveledPanel
drawBeveledPanel
-public static void drawBeveledPanel(DrawContext context,
+public static void drawBeveledPanel(DrawContext context,
int x,
int y,
int width,
@@ -683,7 +683,7 @@ drawBeveledPanel
drawBeveledPanel
-public static void drawBeveledPanel(DrawContext context,
+public static void drawBeveledPanel(DrawContext context,
int x,
int y,
int width,
@@ -708,7 +708,7 @@ drawBeveledPanel
drawString
-public static void drawString(DrawContext context,
+public static void drawString(DrawContext context,
String s,
HorizontalAlignment align,
int x,
@@ -731,8 +731,8 @@ drawString
drawString
-public static void drawString(DrawContext context,
- OrderedText text,
+public static void drawString(DrawContext context,
+ OrderedText text,
HorizontalAlignment align,
int x,
int y,
@@ -756,7 +756,7 @@ drawString
drawStringWithShadow
-public static void drawStringWithShadow(DrawContext context,
+public static void drawStringWithShadow(DrawContext context,
String s,
HorizontalAlignment align,
int x,
@@ -779,8 +779,8 @@ drawStringWithShadow
drawStringWithShadow
-public static void drawStringWithShadow(DrawContext context,
- OrderedText text,
+public static void drawStringWithShadow(DrawContext context,
+ OrderedText text,
HorizontalAlignment align,
int x,
int y,
@@ -802,7 +802,7 @@ drawStringWithShadow
drawString
-public static void drawString(DrawContext context,
+public static void drawString(DrawContext context,
String s,
int x,
int y,
@@ -821,8 +821,8 @@ drawString
drawString
-public static void drawString(DrawContext context,
- OrderedText text,
+
@@ -840,9 +840,9 @@ drawString
drawTextHover
-public static void drawTextHover(DrawContext context,
+public static void drawTextHover(DrawContext context,
@Nullable
- @Nullable Style textStyle,
+ @Nullable Style textStyle,
int x,
int y)
Draws the text hover effects for a text style.
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 484168a..2a0322b 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui.client (LibGui 9.0.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 e773641..59decb8 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui.client Class Hierarchy (LibGui 9.0.0+1.20.2 API)
@@ -59,12 +59,12 @@ Class Hierarchy
- java.lang.Object
-- net.minecraft.client.gui.AbstractParentElement (implements net.minecraft.client.gui.ParentElement)
+
- net.minecraft.client.gui.AbstractParentElement (implements net.minecraft.client.gui.ParentElement)
-- net.minecraft.client.gui.screen.Screen (implements net.minecraft.client.gui.Drawable)
+
- net.minecraft.client.gui.screen.Screen (implements net.minecraft.client.gui.Drawable)
- io.github.cottonmc.cotton.gui.client.CottonClientScreen (implements io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl)
-- net.minecraft.client.gui.screen.ingame.HandledScreen<T> (implements net.minecraft.client.gui.screen.ingame.ScreenHandlerProvider<T>)
+
- net.minecraft.client.gui.screen.ingame.HandledScreen<T> (implements net.minecraft.client.gui.screen.ingame.ScreenHandlerProvider<T>)
- io.github.cottonmc.cotton.gui.client.CottonInventoryScreen<T> (implements io.github.cottonmc.cotton.gui.impl.client.CottonScreenImpl)
diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html b/libgui/io/github/cottonmc/cotton/gui/networking/NetworkSide.html
index 93ed7dc..dac55ac 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 8.1.0+1.20.1 API)
+NetworkSide (LibGui 9.0.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 d4967ea..78bed42 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 8.1.0+1.20.1 API)
+ScreenNetworking.MessageReceiver (LibGui 9.0.0+1.20.2 API)
@@ -99,7 +99,7 @@ Method Summary
Method
Description
void
-onMessage(PacketByteBuf buf)
+onMessage(PacketByteBuf buf)
Handles a received screen message.
@@ -120,7 +120,7 @@ Method Details
-
onMessage
-
+
Handles a received screen message.
This method should only read from the buffer, not write to it.
diff --git a/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html b/libgui/io/github/cottonmc/cotton/gui/networking/ScreenNetworking.html
index fc0b9be..6f47b4d 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 8.1.0+1.20.1 API)
+ScreenNetworking (LibGui 9.0.0+1.20.2 API)
@@ -150,14 +150,14 @@ Method Summary
Gets a networking handler for the GUI description that is active on the specified side.
void
-receive(Identifier message,
+receive(Identifier message,
ScreenNetworking.MessageReceiver receiver)
Registers a message receiver for the message.
void
-send(Identifier message,
- Consumer<PacketByteBuf> writer)
+send(Identifier message,
+ Consumer<PacketByteBuf> writer)
Sends a screen message to the other side of the connection.
@@ -195,7 +195,7 @@ of
receive
-void receive(Identifier message,
+
Registers a message receiver for the message.
@@ -211,8 +211,8 @@ receive
send
-
+
Sends a screen message to the other side of the connection.
- Parameters:
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 cf834a2..89dac36 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui.networking (LibGui 9.0.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 c901678..77ea5f5 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui.networking Class Hierarchy (LibGui 9.0.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 79e02b0..6ed7ee0 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui (LibGui 9.0.0+1.20.2 API)
@@ -107,8 +107,8 @@ Package io.githu
-
+
diff --git a/libgui/io/github/cottonmc/cotton/gui/package-tree.html b/libgui/io/github/cottonmc/cotton/gui/package-tree.html
index b8d1a9a..d3f2bba 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 8.1.0+1.20.1 API)
+io.github.cottonmc.cotton.gui Class Hierarchy (LibGui 9.0.0+1.20.2 API)
@@ -59,8 +59,8 @@ Class Hierarchy
- java.lang.Object
-- io.github.cottonmc.cotton.gui.EmptyInventory (implements net.minecraft.inventory.Inventory)
-- net.minecraft.screen.ScreenHandler
+
- io.github.cottonmc.cotton.gui.EmptyInventory (implements net.minecraft.inventory.Inventory)
+- net.minecraft.screen.ScreenHandler
- io.github.cottonmc.cotton.gui.SyncedGuiDescription (implements io.github.cottonmc.cotton.gui.GuiDescription)
@@ -69,7 +69,7 @@ Class Hierarchy
-- net.minecraft.screen.slot.Slot
+
- net.minecraft.screen.slot.Slot
- io.github.cottonmc.cotton.gui.ValidatedSlot
diff --git a/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html b/libgui/io/github/cottonmc/cotton/gui/widget/TooltipBuilder.html
index 0e1e1b8..2b37d2d 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 8.1.0+1.20.1 API)
+TooltipBuilder (LibGui 9.0.0+1.20.2 API)
@@ -112,12 +112,12 @@ Method Summary
Method
Description
-add(OrderedText... lines)
+add(OrderedText... lines)
Adds the lines to this builder.
-
+
Adds the lines to this builder.
@@ -155,7 +155,7 @@ Method Details
-
add
-
+
Adds the lines to this builder.
- Parameters:
@@ -168,7 +168,7 @@ add
-
add
-
+
Adds the lines to this builder.
- Parameters:
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 420d7dd..8417e91 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 8.1.0+1.20.1 API)
+WAbstractSlider.Direction (LibGui 9.0.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 820a7cf..2508016 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 8.1.0+1.20.1 API)
+WAbstractSlider (LibGui 9.0.0+1.20.2 API)
@@ -192,7 +192,7 @@ Method Summary
Method
Description
void
-addNarrations(NarrationMessageBuilder builder)
+addNarrations(NarrationMessageBuilder builder)
Adds the narrations of this widget to a narration builder.
@@ -295,9 +295,10 @@ Method Summary
Notifies this widget that the mouse has been moved while pressed and inside its bounds.
-onMouseScroll(int x,
+onMouseScroll(int x,
int y,
- double amount)
+ double horizontalAmount,
+ double verticalAmount)
Notifies this widget that the mouse has been scrolled inside its bounds.
@@ -643,21 +644,23 @@ onMouseUp
-
+
onMouseScroll
-Description copied from class: WWidget
+ double horizontalAmount,
+ double verticalAmount)
+Description copied from class: WWidget
Notifies this widget that the mouse has been scrolled inside its bounds.
- Overrides:
-onMouseScroll
in class WWidget
+onMouseScroll
in class WWidget
- Parameters:
x
- The X coordinate of the event, in widget-space (0 is the left edge of this widget)
y
- The Y coordinate of the event, in widget-space (0 is the top edge of this widget)
-amount
- The scrolled amount. Positive values are up and negative values are down.
+horizontalAmount
- The scrolled horizontal amount. Positive values are right and negative values are left.
+verticalAmount
- The scrolled vertical amount. Positive values are up and negative values are down.
- Returns:
InputResult.PROCESSED
if the event is handled, InputResult.IGNORED
otherwise.
@@ -851,7 +854,7 @@ isDragging
addNarrations
+ public void addNarrations(NarrationMessageBuilder builder)
Description copied from class: WWidget
Adds the narrations of this widget to a narration builder.
Narrations will only apply if this widget is narratable.
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 d345a0c..d83ab2a 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 8.1.0+1.20.1 API)
+WBar.Direction (LibGui 9.0.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 8d97bb7..9c7f748 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 8.1.0+1.20.1 API)
+WBar (LibGui 9.0.0+1.20.2 API)
@@ -80,7 +80,7 @@ Class WBar
-A bar that displays int values from a PropertyDelegate
.
+A bar that displays int values from a PropertyDelegate
.
Bars can be used for all kinds of bars including
progress bars (and progress arrows) and energy bars.
@@ -145,7 +145,7 @@ Field Summary
The constant maximum value of the field
.
-protected PropertyDelegate
+protected PropertyDelegate
The properties used for painting this bar.
@@ -155,7 +155,7 @@ Field Summary
The translation key of the tooltip.
-protected Text
+protected Text
A tooltip text component.
@@ -185,13 +185,13 @@ Constructor Summary
int maxField,
WBar.Direction dir)
-WBar(Identifier bg,
- Identifier bar,
+WBar(Identifier bg,
+ Identifier bar,
int field,
int maxField)
-WBar(Identifier bg,
- Identifier bar,
+WBar(Identifier bg,
+ Identifier bar,
int field,
int maxField,
WBar.Direction dir)
@@ -220,13 +220,13 @@ Method Summary
Checks whether this widget can be resized using WWidget.setSize(int, int)
.
-
+
Gets the current properties of this bar.
void
-paint(DrawContext context,
+paint(DrawContext context,
int x,
int y,
int mouseX,
@@ -235,7 +235,7 @@ Method Summary
Paints this widget.
-setProperties(PropertyDelegate properties)
+setProperties(PropertyDelegate properties)
Sets the current properties of this bar.
@@ -254,8 +254,8 @@ Method Summary
Creates a WBar that has a constant maximum-value instead of getting the maximum from a field.
static WBar
-withConstantMaximum(Identifier bg,
- Identifier bar,
+withConstantMaximum(Identifier bg,
+ Identifier bar,
int field,
int maxValue,
WBar.Direction dir)
@@ -268,16 +268,16 @@ Method Summary
Adds a tooltip to the WBar.
-withTooltip(Text label)
+withTooltip(Text label)
Methods inherited from class io.github.cottonmc.cotton.gui.widget.WWidget
-addNarrations, addPainters, canFocus, canHover, getAbsoluteX, getAbsoluteY, getFocusModel, getHeight, getHost, getParent, getWidth, getX, getY, hit, hoveredProperty, isActivationKey, isFocused, isHovered, isNarratable, isWithinBounds, onCharTyped, onClick, onFocusGained, onFocusLost, onHidden, onKeyPressed, onKeyReleased, onMouseDown, onMouseDrag, onMouseMove, onMouseScroll, onMouseUp, onShown, releaseFocus, renderTooltip, requestFocus, setHost, setHovered, setLocation, setParent, setSize, shouldRenderInDarkMode, tick
+addNarrations, addPainters, canFocus, canHover, getAbsoluteX, getAbsoluteY, getFocusModel, getHeight, getHost, getParent, getWidth, getX, getY, hit, hoveredProperty, isActivationKey, isFocused, isHovered, isNarratable, isWithinBounds, onCharTyped, onClick, onFocusGained, onFocusLost, onHidden, onKeyPressed, onKeyReleased, onMouseDown, onMouseDrag, onMouseMove, onMouseScroll, onMouseUp, onShown, releaseFocus, renderTooltip, requestFocus, setHost, setHovered, setLocation, setParent, setSize, shouldRenderInDarkMode, tick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -346,7 +346,7 @@ maxValue
properties
-
+
The properties used for painting this bar.
The current value is read from the property with ID field
,
@@ -379,7 +379,7 @@
tooltipLabel
tooltipTextComponent
-
+
A tooltip text component. This can be used instead of tooltipLabel
,
or together with it. In that case, this component will be drawn after the other label.
@@ -418,8 +418,8 @@ WBar
WBar
-public WBar(Identifier bg,
- Identifier bar,
+
@@ -427,8 +427,8 @@ WBar
WBar
-public WBar(Identifier bg,
- Identifier bar,
+
@@ -462,8 +462,8 @@ withTooltip
withTooltip
-
-Adds a tooltip Text
to the WBar.
+
+Adds a tooltip Text
to the WBar.
- Parameters:
label
- the added tooltip label
@@ -490,7 +490,7 @@ canResize
paint
@Environment(CLIENT)
-public void paint(DrawContext context,
+public void paint(DrawContext context,
int x,
int y,
int mouseX,
@@ -530,7 +530,7 @@ validate
getInputFilter()