Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- add(int, E) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- add(E) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- addAll(int, Collection<? extends E>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- addAll(Collection<? extends E>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- addAll(E...) - Method in interface io.github.somesourcecode.someguiapi.collections.ObservableList
-
A convenience method to add varargs elements to the list.
- addAll(E...) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- addListener(ListChangeListener<? super E>) - Method in interface io.github.somesourcecode.someguiapi.collections.ObservableList
-
Adds a listener that is called whenever the list changes.
- addListener(ListChangeListener<? super E>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- append(Component) - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Appends a component to the content of the paragraph.
- appendBlank() - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a blank line to the lore.
- appendBlank(int) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a blank lines to the lore.
- appendDivider(int, NamedTextColor) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a divider with the given length and color to the lore.
- appendDivider(int, NamedTextColor, boolean) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a divider with the given length, color and boldness to the lore.
- appendLine(Component) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a line to the lore.
- appendParagraph(Paragraph) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends a paragraph to the lore.
- appendParagraphs(Paragraph...) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends multiple paragraphs to the lore.
- appendParagraphs(List<Paragraph>) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Appends multiple paragraphs to the lore.
- at(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Relocates the item to the given coordinates.
- atX(int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Relocates the item to the given x coordinate.
- atY(int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Relocates the item to the given y coordinate.
B
- Background - Interface in io.github.somesourcecode.someguiapi.scene
-
Represents a background for a node or scene.
- backgroundAt(int, int) - Method in interface io.github.somesourcecode.someguiapi.scene.Background
-
Returns the item stack that should be displayed at the given layout coordinates.
- blank() - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new blank paragraph.
- blank(int) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new blank paragraph with the given amount of blank lines.
- blank(Material) - Static method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Creates a pixel with the specified material and empty title and lore.
- BlankParagraph - Class in io.github.somesourcecode.someguiapi.scene.lore
-
A paragraph that contains just blank lines.
- BlankParagraph() - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
-
Constructs a new blank paragraph with a single blank line.
- BlankParagraph(int) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
-
Constructs a new blank paragraph with the given amount of blank lines.
- build() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Builds the GuiItem object.
C
- Change<E> - Class in io.github.somesourcecode.someguiapi.collections
-
Represents a change in a list.
- Change(List<? extends E>, List<? extends E>) - Constructor for class io.github.somesourcecode.someguiapi.collections.Change
-
Constructs a new change with the specified added and removed sublists.
- CHARACTER - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.lore.WrapType
-
Wrapping should be applied at the end of the line, regardless of the position of the last word.
- checkerboard(Pixel, Pixel) - Static method in interface io.github.somesourcecode.someguiapi.scene.Background
-
Creates a checkerboard background with the given primary and secondary pixels.
- ChestGui - Class in io.github.somesourcecode.someguiapi.scene.gui
-
Represents a GUI that can be shown to players.
- ChestGui(Component, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Constructs a new ChestGui with the specified title and number of rows.
- clear() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- clear() - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Removes all paragraphs from the lore.
- clearDirtyFlag(DirtyFlag) - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Clears the specified dirty flag.
- clearDirtyFlag(Gui, DirtyFlag) - Static method in class io.github.somesourcecode.someguiapi.scene.gui.GuiHelper
- clearDirtyFlag(Gui, DirtyFlag) - Method in interface io.github.somesourcecode.someguiapi.scene.gui.GuiHelper.GuiAccessor
- clearDirtyFlags() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Clears all dirty flags.
- clearDirtyFlags(Gui) - Static method in class io.github.somesourcecode.someguiapi.scene.gui.GuiHelper
- clearDirtyFlags(Gui) - Method in interface io.github.somesourcecode.someguiapi.scene.gui.GuiHelper.GuiAccessor
- ComponentUtil - Class in io.github.somesourcecode.someguiapi.util
-
Utility class for components.
- ComponentUtil() - Constructor for class io.github.somesourcecode.someguiapi.util.ComponentUtil
- consume() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Consumes the click.
- contains(Object) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- containsAll(Collection<?>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- context(Function<RenderContext, Paragraph>) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new context paragraph with the given paragraph generator.
- ContextData<T> - Class in io.github.somesourcecode.someguiapi.scene.data
-
This class is used to store data.
- ContextData(String, Class<T>) - Constructor for class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Constructs a new ContextData instance with the given id and class.
- ContextData(String, Class<T>, T) - Constructor for class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Constructs a new ContextData instance with the given id, class and data.
- ContextDataHolder - Class in io.github.somesourcecode.someguiapi.scene.data
-
A container for context data.
- ContextDataHolder() - Constructor for class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
- ContextParagraph - Class in io.github.somesourcecode.someguiapi.scene.lore
-
The basic implementation of a
ReloadableParagraph. - ContextParagraph() - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.ContextParagraph
-
Constructs a new empty context paragraph.
- ContextParagraph(Function<RenderContext, Paragraph>) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.ContextParagraph
-
Constructs a new context paragraph with the given content generator.
- copyComponent(Component, boolean) - Static method in class io.github.somesourcecode.someguiapi.util.ComponentUtil
-
Copies a component.
- create(Pixel) - Static method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Constructs a new empty GuiItem builder with the given pixel.
- create(Material) - Static method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Constructs a new empty GuiItem builder with the given material.
D
- dataHolder - Variable in class io.github.somesourcecode.someguiapi.scene.gui.Gui
- DEFAULT_WRAP_TYPE - Static variable in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
The default type of wrapping.
- DEFAULT_WRAP_WIDTH - Static variable in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
The default width at which the text should be wrapped.
- DirtyFlag - Enum Class in io.github.somesourcecode.someguiapi.scene
-
Contains flags that indicate what part of a GUI needs to be updated.
- dirtyFlags - Variable in class io.github.somesourcecode.someguiapi.scene.gui.Gui
- divider() - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new divider paragraph.
- divider(int) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new divider paragraph with the given length.
- divider(int, NamedTextColor) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new divider paragraph with the given length and color.
- divider(int, NamedTextColor, boolean) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new divider paragraph with the given length, color and boldness.
- DividerParagraph - Class in io.github.somesourcecode.someguiapi.scene.lore
-
A paragraph that acts as a divider.
- DividerParagraph() - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Constructs a new divider paragraph.
- DividerParagraph(int) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Constructs a new divider paragraph with the given length.
- DividerParagraph(int, TextColor) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Constructs a new divider paragraph with the given length and color.
- DividerParagraph(int, TextColor, boolean) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Constructs a new divider paragraph with the given length, color and boldness.
E
- empty() - Static method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Creates an empty pixel.
- EMPTY - Static variable in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Empty insets.
- equals(Object) - Method in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Indicates whether some other object is "equal to" this one.
F
- fill(Pixel) - Static method in interface io.github.somesourcecode.someguiapi.scene.Background
-
Creates a background that fills the background with the given pixel.
- fireOnClick(NodeClickContext) - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Fires the onClick event for the node at the given coordinates.
- FlowPane - Class in io.github.somesourcecode.someguiapi.scene.layout
-
A layout pane that arranges its children in a flow, wrapping at the pane's bounds.
- FlowPane() - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with horizontal orientation.
- FlowPane(int, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given horizontal and vertical gaps.
- FlowPane(int, int, Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given horizontal and vertical gaps and children.
- FlowPane(Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given children.
- FlowPane(Orientation) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given orientation.
- FlowPane(Orientation, int, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given orientation, horizontal and vertical gaps.
- FlowPane(Orientation, int, int, Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given orientation, horizontal and vertical gaps, and children.
- FlowPane(Orientation, Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Constructs a new FlowPane with the given orientation and children.
G
- generateLines(RenderContext) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Generates the lines of the lore.
- get() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data.
- get(int) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- getAddedSubList() - Method in class io.github.somesourcecode.someguiapi.collections.Change
-
Returns the list of elements that were added.
- getAs(Class<E>) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as the given type.
- getAsBoolean() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a boolean.
- getAsByte() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a byte.
- getAsChar() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a char.
- getAsDouble() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a double.
- getAsFloat() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a float.
- getAsInt() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as an integer.
- getAsLong() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a long.
- getAsShort() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a short.
- getAsString() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as a string.
- getBackground() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Returns the background of this parent.
- getBackground() - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Returns the background of the scene.
- getBottom() - Method in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Returns the bottom inset.
- getChildren() - Method in class io.github.somesourcecode.someguiapi.scene.layout.Pane
- getChildren() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Returns the list of children of this parent.
- getColor() - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Returns the color of the divider.
- getContent() - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Returns the content of the paragraph.
- getData(String) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Returns the context data with the given id.
- getDataHolder() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Returns the
ContextDataHolderof this GUI. - getDataHolder() - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Returns the data holder of this scene.
- getDataUnchecked(String) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Returns the context data with the given id and an unchecked data type.
- getDirtyFlags() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Returns a set of dirty flags that indicate which parts of the GUI need to be updated.
- getGui() - Method in class io.github.somesourcecode.someguiapi.scene.context.RenderContext
-
Returns the gui in which the pixel is rendered.
- getGui() - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Returns the GUI that this scene is attached to.
- getGuiAccessor() - Static method in class io.github.somesourcecode.someguiapi.scene.gui.GuiHelper
- getHeight() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
- getHeight() - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
- getHeight() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the height of the node.
- getHGap() - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Returns the amount of space between each node in a horizontal FlowPane or the space between each column in a vertical FlowPane.
- getHotBarButton() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the hot bar button that was clicked.
- getId() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the id of the data.
- getId() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the id of this node.
- getIndex() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the index of this item.
- getIndex() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns the index of this pixel.
- getInventory() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
- getLayoutX() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the x coordinate of the node's origin.
- getLayoutY() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the y coordinate of the node's origin.
- getLeft() - Method in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Returns the left inset.
- getLength() - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Returns the length of the divider.
- getLine() - Method in class io.github.somesourcecode.someguiapi.scene.lore.LineParagraph
-
Returns the line of the paragraph.
- getLines() - Method in class io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
- getLines() - Method in class io.github.somesourcecode.someguiapi.scene.lore.ContextParagraph
- getLines() - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
- getLines() - Method in class io.github.somesourcecode.someguiapi.scene.lore.LineParagraph
- getLines() - Method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Returns a list representing the lines of the paragraph.
- getLines() - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
- getLore() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the lore of this item.
- getLore() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns the lore of this pixel.
- getMaterial() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the material of this item.
- getMaterial() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns the material of this pixel.
- getNodeAccessor() - Static method in class io.github.somesourcecode.someguiapi.scene.NodeHelper
- getOnClick() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the consumer that is called when the node is clicked.
- getOnHotBarClick() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the consumer that is called when the node receives a hot bar click.
- getOnLeftClick() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the consumer that is called when the node is left-clicked.
- getOnRightClick() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the consumer that is called when the node is right-clicked.
- getOnShiftClick() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the consumer that is called when the node is shift-clicked.
- getOptionalData(String) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Returns the context data with the given id as an optional.
- getOrientation() - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Returns the orientation of the flow pane.
- getPadding() - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Returns the padding of this region.
- getParent() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the parent of this node.
- getPixel() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the pixel representation of this item.
- getRemovedSubList() - Method in class io.github.somesourcecode.someguiapi.collections.Change
-
Returns the list of elements that were removed.
- getRight() - Method in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Returns the right inset.
- getRoot() - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Returns the root of the scene.
- getRows() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Returns the number of rows of this GUI.
- getScene() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the scene the click occurred in.
- getScene() - Method in class io.github.somesourcecode.someguiapi.scene.context.RenderContext
-
Returns the scene in which the pixel is rendered.
- getScene() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Returns the
Sceneof this GUI. - getScene() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the scene that this node is in.
- getSceneAccessor() - Static method in class io.github.somesourcecode.someguiapi.scene.SceneHelper
- getSlotX() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the x coordinate of the slot that was clicked.
- getSlotY() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the y coordinate of the slot that was clicked.
- getSpace() - Method in class io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
-
Returns the amount of blank lines.
- getSpacing() - Method in class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Returns the amount of horizontal space between each child node.
- getSpacing() - Method in class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Returns the amount of vertical space between each child node.
- getTitle() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Returns the title of this GUI.
- getTitle() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the title of this item.
- getTitle() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns the title of this pixel.
- getTop() - Method in class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Returns the top inset.
- getTranslateX() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the x translation of the node.
- getTranslateY() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the y translation of the node.
- getType() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the type of click that was performed.
- getUnchecked() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns the stored data as an unchecked type.
- getVGap() - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Returns the amount of space between each node in a vertical FlowPane or the space between each row in a horizontal FlowPane.
- getViewers() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
- getViewers() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Returns a list of human entities that are currently viewing this GUI.
- getWhoClicked() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns the human entity that clicked the node.
- getWidth() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
- getWidth() - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
- getWidth() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the width of the node.
- getWrapType() - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Returns the type of wrapping that is applied to the paragraph.
- getWrapWidth() - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Returns the width at which the text should be wrapped.
- Gui - Class in io.github.somesourcecode.someguiapi.scene.gui
-
The base class for GUIs that can be shown to players.
- Gui() - Constructor for class io.github.somesourcecode.someguiapi.scene.gui.Gui
- GUI_CONTENT - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.DirtyFlag
- GUI_ROWS - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.DirtyFlag
- GUI_TITLE - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.DirtyFlag
- GuiHelper - Class in io.github.somesourcecode.someguiapi.scene.gui
-
A helper class for GUIs to access internal methods.
- GuiHelper.GuiAccessor - Interface in io.github.somesourcecode.someguiapi.scene.gui
- GuiItem - Class in io.github.somesourcecode.someguiapi.scene
-
Represents an item in a GUI.
- GuiItem() - Constructor for class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Constructs a new GuiItem with an empty pixel.
- GuiItem(Material) - Constructor for class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Constructs a new GuiItem with the specified material.
- GuiItem.Builder - Class in io.github.somesourcecode.someguiapi.scene
-
The builder for the GuiItem class.
- GuiListener - Class in io.github.somesourcecode.someguiapi
-
A listener that listens for GUI interactions.
- GuiListener() - Constructor for class io.github.somesourcecode.someguiapi.GuiListener
H
- HBox - Class in io.github.somesourcecode.someguiapi.scene.layout
-
A layout pane that arranges its children in a horizontal row.
- HBox() - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Constructs a new HBox with a spacing of 0.
- HBox(int) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Constructs a new HBox with the given spacing.
- HBox(int, Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Constructs a new HBox with the given spacing and children.
- HBox(Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Constructs a new HBox with the given children.
- HORIZONTAL - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.util.Orientation
I
- indexOf(Object) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- Insets - Class in io.github.somesourcecode.someguiapi.scene.util
-
Represents the distance from the edges of a container to its content.
- Insets(int) - Constructor for class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Constructs a new Insets instance with same value for all four offsets.
- Insets(int, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Constructs a new Insets instance with same value for top and bottom, and for right and left.
- Insets(int, int, int, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.util.Insets
-
Constructs a new Insets instance with four different offsets.
- inventory - Variable in class io.github.somesourcecode.someguiapi.scene.gui.Gui
- io.github.somesourcecode.someguiapi - package io.github.somesourcecode.someguiapi
- io.github.somesourcecode.someguiapi.collections - package io.github.somesourcecode.someguiapi.collections
- io.github.somesourcecode.someguiapi.scene - package io.github.somesourcecode.someguiapi.scene
- io.github.somesourcecode.someguiapi.scene.context - package io.github.somesourcecode.someguiapi.scene.context
- io.github.somesourcecode.someguiapi.scene.data - package io.github.somesourcecode.someguiapi.scene.data
- io.github.somesourcecode.someguiapi.scene.gui - package io.github.somesourcecode.someguiapi.scene.gui
- io.github.somesourcecode.someguiapi.scene.layout - package io.github.somesourcecode.someguiapi.scene.layout
- io.github.somesourcecode.someguiapi.scene.lore - package io.github.somesourcecode.someguiapi.scene.lore
- io.github.somesourcecode.someguiapi.scene.util - package io.github.somesourcecode.someguiapi.scene.util
- io.github.somesourcecode.someguiapi.util - package io.github.somesourcecode.someguiapi.util
- isBold() - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Returns whether the divider is bold.
- isClipping() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
- isClipping() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns whether the node is clipping its children.
- isConsumed() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Returns true if the click has been consumed; false otherwise.
- isDirty() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Returns whether this GUI is dirty.
- isDirty(DirtyFlag) - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Returns whether the specified dirty flag is set.
- isEmpty() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- isEmpty() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns whether this pixel is empty.
- isGlow() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns whether this item should glow.
- isGlow() - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Returns whether this pixel should glow.
- isHotBarClick() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Return true if the click was a hot bar click; false otherwise.
- isLeftClick() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Return true if the click was a left click; false otherwise.
- isRightClick() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Return true if the click was a right click; false otherwise.
- isSceneRoot() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Returns whether this parent is the root of a scene.
- isSet() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Returns whether the data is set.
- isShiftClick() - Method in class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Return true if the click was a shift click; false otherwise.
- isVisible() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns whether the node is visible.
- iterator() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
L
- lastIndexOf(Object) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- layout() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Recursively applies the layout to all children and itself.
- layoutChildren() - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
- layoutChildren() - Method in class io.github.somesourcecode.someguiapi.scene.layout.HBox
- layoutChildren() - Method in class io.github.somesourcecode.someguiapi.scene.layout.VBox
- layoutChildren() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
- line(Component) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new line paragraph with the given line.
- LineParagraph - Class in io.github.somesourcecode.someguiapi.scene.lore
-
A paragraph that contains a single line.
- LineParagraph(Component) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.LineParagraph
-
Constructs a new line paragraph with the given line.
- ListChangeListener<E> - Interface in io.github.somesourcecode.someguiapi.collections
-
A listener that is called whenever an
ObservableListchanges. - listIterator() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- listIterator(int) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- lookup(String) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Finds this
Nodeor the first sub-node by the given selector. - lookup(String) - Method in class io.github.somesourcecode.someguiapi.scene.Parent
- lookup(String) - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Looks for any node in the scene that matches the given selector.
- lookupAll(String) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Finds all nodes that match the given selector.
- lookupAll(String) - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Looks for all nodes in the scene that match the given selector.
- lookupAll(String, Set<Node>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Used by Node and Parent to traverse the scene graph to find all nodes that match the given selector.
- lookupAll(String, Set<Node>) - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Used by Node and Parent to traverse the scene graph to find all nodes that match the given selector.
- Lore - Class in io.github.somesourcecode.someguiapi.scene.lore
-
Represents the text which is shown below the title on hover.
- Lore() - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.Lore
M
- Main - Class in io.github.somesourcecode.someguiapi
- Main() - Constructor for class io.github.somesourcecode.someguiapi.Main
N
- needsLayout() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Returns whether this parent needs a layout update.
- Node - Class in io.github.somesourcecode.someguiapi.scene
-
The base class for all nodes in the scene graph.
- Node() - Constructor for class io.github.somesourcecode.someguiapi.scene.Node
- nodeAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns the node at the given coordinates.
- nodeAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns the node at the given coordinates.
- nodeAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.Parent
- NodeClickContext - Class in io.github.somesourcecode.someguiapi.scene.context
-
Represents the context of a node click.
- NodeClickContext(Scene, int, int, ClickType, HumanEntity, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
-
Creates a new node click context.
- NodeHelper - Class in io.github.somesourcecode.someguiapi.scene
-
A helper class for nodes to access internal methods.
- NodeHelper.NodeAccessor - Interface in io.github.somesourcecode.someguiapi.scene
- NONE - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.lore.WrapType
-
No wrapping should be applied.
O
- ObservableList<E> - Interface in io.github.somesourcecode.someguiapi.collections
-
A list that can be observed for changes.
- ObservableListBase<E> - Class in io.github.somesourcecode.someguiapi.collections
-
A base implementation of an
ObservableList. - ObservableListBase(List<E>) - Constructor for class io.github.somesourcecode.someguiapi.collections.ObservableListBase
-
Constructs a new observable list with the specified base list.
- of(Material) - Static method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Creates a pixel with the specified material.
- onChanged(Change<? extends E>) - Method in interface io.github.somesourcecode.someguiapi.collections.ListChangeListener
-
Called whenever the list changes.
- onClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the consumer that is called when the node is clicked.
- onEnable() - Method in class io.github.somesourcecode.someguiapi.Main
- onGuiClick(InventoryClickEvent) - Method in class io.github.somesourcecode.someguiapi.GuiListener
- onHotBarClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the consumer that is called when the node receives a hot bar click.
- onLeftClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the consumer that is called when the node is left-clicked.
- onRightClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the consumer that is called when the node is right-clicked.
- onShiftClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the consumer that is called when the node is shift-clicked.
- Orientation - Enum Class in io.github.somesourcecode.someguiapi.scene.util
-
Represents the orientation of a control or layout.
P
- Pane - Class in io.github.somesourcecode.someguiapi.scene.layout
-
Pane does not modify the layout of its children in any way.
- Pane() - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.Pane
-
Constructs a new pane empty.
- Pane(Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.Pane
-
Constructs a new pane with the given children.
- Paragraph - Interface in io.github.somesourcecode.someguiapi.scene.lore
-
Represents a paragraph in a lore.
- Parent - Class in io.github.somesourcecode.someguiapi.scene
-
The base class for all nodes that can have children.
- Parent() - Constructor for class io.github.somesourcecode.someguiapi.scene.Parent
-
Constructs a new parent node.
- Pixel - Class in io.github.somesourcecode.someguiapi.scene
-
An instance of Pixel contains all the information needed to render a single item in a GUI.
- Pixel() - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new empty pixel.
- Pixel(Material) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material.
- Pixel(Material, int) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material and title.
- Pixel(Material, int, Component) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material and title.
- Pixel(Material, int, Component, Lore) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material, index, title, and lore.
- Pixel(Material, int, Component, Lore, boolean) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material, index, title, lore, and glow.
- Pixel(Material, Component) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material and title.
- Pixel(Material, Component, Lore) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material, title, and lore.
- Pixel(Material, Component, Lore, boolean) - Constructor for class io.github.somesourcecode.someguiapi.scene.Pixel
-
Constructs a new pixel with the specified material, title, lore, and glow.
R
- Region - Class in io.github.somesourcecode.someguiapi.scene.layout
-
The Base class for parent nodes whose size can be freely set.
- Region() - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Constructs a new region with a width and height of 0.
- register(ContextData<?>) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Registers the given context data.
- register(String, Class<T>) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Registers a new context data with the given id, class and data.
- register(String, Class<T>, T) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Registers a new context data with the given id, class and data.
- reload(RenderContext) - Method in class io.github.somesourcecode.someguiapi.scene.lore.ContextParagraph
- reload(RenderContext) - Method in interface io.github.somesourcecode.someguiapi.scene.lore.ReloadableParagraph
-
Reloads the paragraph with the given context.
- ReloadableParagraph - Interface in io.github.somesourcecode.someguiapi.scene.lore
-
Represents a paragraph whose content depends on the context in which it is rendered.
- relocate(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Moves the node to the specified location.
- remove(int) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- remove(Object) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- removeAll(E...) - Method in interface io.github.somesourcecode.someguiapi.collections.ObservableList
-
A convenience method to remove varargs elements from the list.
- removeAll(E...) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- removeAll(Collection<?>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- removeListener(ListChangeListener<? super E>) - Method in interface io.github.somesourcecode.someguiapi.collections.ObservableList
-
Removes a listener.
- removeListener(ListChangeListener<? super E>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- RenderContext - Class in io.github.somesourcecode.someguiapi.scene.context
-
The context in which a pixel is rendered.
- RenderContext(Gui, Scene) - Constructor for class io.github.somesourcecode.someguiapi.scene.context.RenderContext
-
Constructs a new render context.
- renderItemStack(RenderContext) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Renders this pixel as an ItemStack.
- renderPixelAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Returns a
Pixelthat should be rendered at the given coordinates. - renderPixelAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Returns a
Pixelthat should be rendered at the given coordinates. - renderPixelAt(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.Parent
- requestLayout() - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Requests a layout update for this parent.
- requestParentLayout() - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Requests a layout update for this node's parent.
- requestRender() - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Requests a render of this GUI.
- requestRender(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Requests a render of this GUI.
- resize(int, int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Resizes this region to the specified width and height.
- resizeRelocate(int, int, int, int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Resizes and relocates this region to the specified layoutX, layoutY, width, and height.
- retainAll(Collection<?>) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
S
- Scene - Class in io.github.somesourcecode.someguiapi.scene
-
The Scene class is the container for all content in a scene graph.
- Scene() - Constructor for class io.github.somesourcecode.someguiapi.scene.Scene
-
Constructs a new empty scene.
- Scene(Parent) - Constructor for class io.github.somesourcecode.someguiapi.scene.Scene
-
Constructs a new scene with the given root.
- SceneHelper - Class in io.github.somesourcecode.someguiapi.scene
-
A helper class for scenes to access internal methods.
- SceneHelper.SceneAccessor - Interface in io.github.somesourcecode.someguiapi.scene
- set(int, E) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- set(Object) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Sets the data.
- setBackground(Background) - Method in class io.github.somesourcecode.someguiapi.scene.Parent
-
Sets the background of this parent.
- setBackground(Background) - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Sets the background of the scene.
- setBold(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Sets whether the divider is bold.
- setClipping(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets whether the node is clipping its children.
- setColor(TextColor) - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Sets the color of the divider.
- setContent(Component) - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Sets the content of the paragraph.
- setContentGenerator(Function<RenderContext, Paragraph>) - Method in class io.github.somesourcecode.someguiapi.scene.lore.ContextParagraph
-
Sets the content generator of the paragraph.
- setDecoration(TextDecoration, boolean) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Adds a decoration override to the lore.
- setDirtyFlag(DirtyFlag) - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Sets the specified dirty flag.
- setDirtyFlag(Gui, DirtyFlag) - Method in interface io.github.somesourcecode.someguiapi.scene.gui.GuiHelper.GuiAccessor
- setDirtyFlag(Gui, DirtyFlag) - Static method in class io.github.somesourcecode.someguiapi.scene.gui.GuiHelper
- setGlow(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Sets whether this item should glow.
- setGlow(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Sets whether this pixel should glow.
- setGui(Scene, Gui) - Method in interface io.github.somesourcecode.someguiapi.scene.SceneHelper.SceneAccessor
- setGui(Scene, Gui) - Static method in class io.github.somesourcecode.someguiapi.scene.SceneHelper
- setGuiAccessor(GuiHelper.GuiAccessor) - Static method in class io.github.somesourcecode.someguiapi.scene.gui.GuiHelper
- setHeight(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Sets the height of this region.
- setHGap(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Sets the amount of space between each node in a horizontal FlowPane or the space between each column in a vertical FlowPane.
- setId(String) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the id of this node.
- setIndex(int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Sets the index of this item.
- setIndex(int) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Sets the index of this pixel.
- setLayoutX(int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the x coordinate of the node's origin.
- setLayoutY(int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the y coordinate of the node's origin.
- setLength(int) - Method in class io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
-
Sets the length of the divider.
- setLine(Component) - Method in class io.github.somesourcecode.someguiapi.scene.lore.LineParagraph
-
Sets the line of the paragraph.
- setLore(Lore) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Sets the lore of this item.
- setLore(Lore) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Sets the lore of this pixel.
- setMaterial(Material) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Sets the material of this item.
- setMaterial(Material) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Sets the material of this pixel.
- setNodeAccessor(NodeHelper.NodeAccessor) - Static method in class io.github.somesourcecode.someguiapi.scene.NodeHelper
- setOnClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the consumer that is called when the node is clicked.
- setOnHotBarClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the consumer that is called when the node receives a hot bar click.
- setOnLeftClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the consumer that is called when the node is left-clicked.
- setOnRightClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the consumer that is called when the node is right-clicked.
- setOnShiftClick(Consumer<NodeClickContext>) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the consumer that is called when the node is shift-clicked.
- setOrientation(Orientation) - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Sets the orientation of the flow pane.
- setPadding(Insets) - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Sets the padding of this region.
- setParagraphs(List<Paragraph>) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Sets the paragraphs of the lore.
- setParent(Node, Parent) - Method in interface io.github.somesourcecode.someguiapi.scene.NodeHelper.NodeAccessor
- setParent(Node, Parent) - Static method in class io.github.somesourcecode.someguiapi.scene.NodeHelper
- setRoot(Parent) - Method in class io.github.somesourcecode.someguiapi.scene.Scene
-
Sets the root of the scene.
- setRows(int) - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Sets the number of rows of this GUI.
- setScene(Node, Scene) - Method in interface io.github.somesourcecode.someguiapi.scene.NodeHelper.NodeAccessor
- setScene(Node, Scene) - Static method in class io.github.somesourcecode.someguiapi.scene.NodeHelper
- setScene(Scene) - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Sets the
Sceneof this GUI. - setSceneAccessor(SceneHelper.SceneAccessor) - Static method in class io.github.somesourcecode.someguiapi.scene.SceneHelper
- setSpace(int) - Method in class io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
-
Sets the amount of blank lines.
- setSpacing(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.HBox
-
Sets the amount of horizontal space between each child node.
- setSpacing(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Sets the amount of vertical space between each child node.
- setTitle(Component) - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
-
Sets the title of this GUI.
- setTitle(Component) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem
-
Sets the title of this item.
- setTitle(Component) - Method in class io.github.somesourcecode.someguiapi.scene.Pixel
-
Sets the title of this pixel.
- setTranslateX(int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the x translation of the node.
- setTranslateY(int) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets the y translation of the node.
- setVGap(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.FlowPane
-
Sets the amount of space between each node in a vertical FlowPane or the space between each row in a horizontal FlowPane.
- setVisible(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.Node
-
Sets whether the node is visible.
- setWidth(int) - Method in class io.github.somesourcecode.someguiapi.scene.layout.Region
-
Sets the width of this region.
- setWrapType(WrapType) - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Sets the type of wrapping that should be applied to the paragraph.
- setWrapWidth(int) - Method in class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Sets the width at which the text should be wrapped.
- show(HumanEntity) - Method in class io.github.somesourcecode.someguiapi.scene.gui.ChestGui
- show(HumanEntity) - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Shows this GUI to the specified human entity.
- size() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- subList(int, int) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
T
- text(Component) - Static method in interface io.github.somesourcecode.someguiapi.scene.lore.Paragraph
-
Constructs a new text paragraph with the given content.
- TextParagraph - Class in io.github.somesourcecode.someguiapi.scene.lore
-
A paragraph that contains text in form of a component.
- TextParagraph() - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Constructs a new empty text paragraph.
- TextParagraph(Component) - Constructor for class io.github.somesourcecode.someguiapi.scene.lore.TextParagraph
-
Constructs a new text paragraph with the given content.
- toArray() - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
- toArray(T[]) - Method in class io.github.somesourcecode.someguiapi.collections.ObservableListBase
U
- unregister(String) - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Unregisters the context data with the given id.
- unregisterAll() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextDataHolder
-
Unregisters all context data.
- unset() - Method in class io.github.somesourcecode.someguiapi.scene.data.ContextData
-
Unsets the data.
- unsetDecoration(TextDecoration) - Method in class io.github.somesourcecode.someguiapi.scene.lore.Lore
-
Removes a decoration override from the lore.
- update() - Method in class io.github.somesourcecode.someguiapi.scene.gui.Gui
-
Updates the GUI for all viewers.
V
- valueOf(String) - Static method in enum class io.github.somesourcecode.someguiapi.scene.DirtyFlag
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.somesourcecode.someguiapi.scene.lore.WrapType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.somesourcecode.someguiapi.scene.util.Orientation
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.somesourcecode.someguiapi.scene.DirtyFlag
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.somesourcecode.someguiapi.scene.lore.WrapType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.somesourcecode.someguiapi.scene.util.Orientation
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VBox - Class in io.github.somesourcecode.someguiapi.scene.layout
-
A layout pane that arranges its children in a vertical column.
- VBox() - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Constructs a new VBox with a spacing of 0.
- VBox(int) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Constructs a new VBox with the given spacing.
- VBox(int, Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Constructs a new VBox with the given spacing and children.
- VBox(Node...) - Constructor for class io.github.somesourcecode.someguiapi.scene.layout.VBox
-
Constructs a new VBox with the given children.
- VERTICAL - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.util.Orientation
W
- wasAdded() - Method in class io.github.somesourcecode.someguiapi.collections.Change
-
Returns whether elements were added.
- wasRemoved() - Method in class io.github.somesourcecode.someguiapi.collections.Change
-
Returns whether elements were removed.
- withGlow() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the glow of the item to true.
- withGlow(boolean) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets whether the item should glow.
- withId(String) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the id of the item.
- withIndex(int) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the index of the item.
- withLore(Lore) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the lore of the item.
- withMaterial(Material) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the material of the item.
- withoutGlow() - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the glow of the item to false.
- withTitle(Component) - Method in class io.github.somesourcecode.someguiapi.scene.GuiItem.Builder
-
Sets the title of the item.
- WORD - Enum constant in enum class io.github.somesourcecode.someguiapi.scene.lore.WrapType
-
Wrapping should be applied at the end of the line, but only after the last word.
- WrapType - Enum Class in io.github.somesourcecode.someguiapi.scene.lore
-
Represents the type of wrapping that should be applied to a paragraph.
All Classes and Interfaces|All Packages|Constant Field Values