Package com.ultikits.ultitools.ui
@NotNullByDefault
package com.ultikits.ultitools.ui
Backend-independent UI intents (notice, confirm, form, choice, grid) and the service that shows them.
-
ClassDescriptionThe only value of an acknowledgement.Constants may be added in a 7.x minor release.Choice<T>Pick one of a list of text options (no item icons; use
Gridfor that).A reusable, non-thread-safe builder.ChoiceInput<T>Pick exactly one of several options.ChoiceOption<T>One option of aChoiceorChoiceInput: a value and how it is shown.Kinds of click a backend can report; constants may be added in a 7.x minor release.Why an intent ended without an answer.Constants may be added in a 7.x minor release.A yes/no question.A reusable, non-thread-safe builder.An applied transfer.Changes since the baseline; copies; immutable.Constants may be added in a 7.x minor release.What was written over what.How to create a container.Reusable builder.Constants may be added in a 7.x minor release.Where a container's contents are written.given + dropped + undelivered equal the input, by item and amount.What happens to a storage container's items when it ends.How a container ended.A form with one or more inputs, submitted at once.A reusable, non-thread-safe builder.FormInput<T>One input of aForm.Submitted values of aForm.A decoded player gesture on a grid screen.Number key 1-9 over a bound slot: exchanges the bound item with hotbar slothotbar(0..8, Bukkit inventory slot number = hotbar index).Left (all) or right (half, rounded up) on a bound slot with an empty cursor.Left (all) or right (one) with a non-empty cursor on a bound slot holding nothing or a similar item.Shift-click on one of the viewer's storage slots (playerSlot0..35): into visible EDITABLE bindings.Shift-click on a bound slot: to the viewer's inventory, what fits.Cursor drag over top slots only;one: one per slot, else split evenly.Left with a non-empty cursor on a bound slot holding a different item.Applies a gesture ofviewerongridatomically.An item-centred screen addressed by slot: a snapshot of what each slot shows and what a click does.A reusable, non-thread-safe snapshot builder.Click handler.One click on a grid slot.What one slot shows and does.A shownGrid.A cell; zero-based.A message with one acknowledge button.A reusable, non-thread-safe builder; builds are independent snapshots.Options for one show.A reusable, non-thread-safe builder; the last timeout selection wins.A number from a range.A reusable, non-thread-safe builder.One slot's view of one container index.Items that one or more framework screens show and edit.The store's answer.Not stored, and nothing of it will be;currentis what the store holds now.Not known whether it was stored (error, timeout, stall).Stored.Free text.A reusable, non-thread-safe builder.A checkbox.Immutable.Constants may be added in a 7.x minor release; treat unknown kinds as refused.Decides each transfer before it is applied.One proposed transfer ofamountofitematindex.A rendering backend.How a backend reports back.UiIntent<R>Something to show to one player, completing with a value of typeR.UiResult<R>Outcome of a shown intent.The intent ended without an answer.The player answered.Shows intents.UiSession<R>One shown intent.Receives items owed to a player who is offline or cannot receive them.The viewer's side: cursor and the 36 storage slots of their inventory (Bukkit slot numbers 0..35: hotbar 0..8, main 9..35); armour and off-hand are never part of it.