Package me.hackware.api.gui.studio
Class StudioAssignList
java.lang.Object
me.hackware.api.gui.studio.StudioAssignList
Membership panel in the wheel-editor style: a labelled list of the currently
assigned rows (each removable), then an "Add …" button that opens a searchable
picker of candidates (drops down from the top add button). Selecting a
candidate assigns it. Stateful — owns the picker's search field + selection; the
host supplies a
StudioAssignList.Model each frame and forwards key/char/mouse events.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidblur()booleancharTyped(int codepoint) booleanbooleankeyPressed(net.minecraft.client.input.KeyEvent event) booleanmouseClicked(double mx, double my, int button, net.minecraft.client.gui.Font font) voidFades the add button's ripple out — hosts must call this from their mouseReleased.booleanmouseScrolled(double mx, double my, double amount) voidrender(UiContext ui, int x, int y, int w, int h, StudioAssignList.Model model) Fills the columnhas a card: a darkened header (matching the steps "Command" card), then the add button at the top of the body (its picker drops down), then the removable rows filling the rest.
-
Constructor Details
-
StudioAssignList
public StudioAssignList()
-
-
Method Details
-
isPickerOpen
public boolean isPickerOpen() -
blur
public void blur() -
render
Fills the columnhas a card: a darkened header (matching the steps "Command" card), then the add button at the top of the body (its picker drops down), then the removable rows filling the rest. -
mouseClicked
public boolean mouseClicked(double mx, double my, int button, net.minecraft.client.gui.Font font) - Returns:
- whether the event was consumed.
-
mouseReleased
public void mouseReleased()Fades the add button's ripple out — hosts must call this from their mouseReleased. -
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent event) -
charTyped
public boolean charTyped(int codepoint) -
mouseScrolled
public boolean mouseScrolled(double mx, double my, double amount)
-