Uses of Class
me.agent.vgui.api.item.ViewItem
Packages that use ViewItem
-
Uses of ViewItem in me.agent.vgui.api
Methods in me.agent.vgui.api with parameters of type ViewItemModifier and TypeMethodDescriptionPlaces an item at a row/column position (applied after the layout).Places an item at a flat slot index (applied after the layout).Maps a layout character to an item ('.'and' 'stay empty).protected final voidSets or replaces a static item at a row/column position.protected final voidSets or replaces a static item;nullremoves it. -
Uses of ViewItem in me.agent.vgui.api.contents
Methods in me.agent.vgui.api.contents that return ViewItemModifier and TypeMethodDescriptionViewContents.get(int slot) The item currently at a flat slot index, ornullif empty.ViewContents.get(int row, int column) The item currently at a row/column position, ornullif empty.Methods in me.agent.vgui.api.contents that return types with arguments of type ViewItemModifier and TypeMethodDescriptionLayout.resolve()Resolves the layout to a map of flat slot index to item, in reading order.Methods in me.agent.vgui.api.contents with parameters of type ViewItemModifier and TypeMethodDescriptionvoidFills every slot with the item.voidViewContents.fillBorder(ViewItem item) Fills the outer border (first/last row and first/last column).voidViewContents.fillColumn(int column, ViewItem item) Fills one column (zero-based).voidFills only slots that are currently empty.voidFills the rectangle from (rowFrom, columnFrom) to (rowTo, columnTo), both inclusive.voidFills one row (zero-based).voidSets or replaces the item at a row/column position.voidSets or replaces the item at a flat slot index.voidSets or replaces the item at aSlotposition.Maps a character to an item.Method parameters in me.agent.vgui.api.contents with type arguments of type ViewItemModifier and TypeMethodDescriptionSets (or replaces) the items to paginate. -
Uses of ViewItem in me.agent.vgui.api.item
Methods in me.agent.vgui.api.item that return ViewItemModifier and TypeMethodDescriptionItemBuilder.asItem()Shortcut forViewItem.of(build()).static ViewItemViewItem.backButton(com.github.retrooper.packetevents.protocol.item.ItemStack item) An item that returns to the previous view (or closes if there is none) when clicked.static ViewItemViewItem.clickable(com.github.retrooper.packetevents.protocol.item.ItemStack item, Consumer<ClickContext> onClick) An item that runsonClickwhen clicked.static ViewItemViewItem.clickable(ItemBuilder builder, Consumer<ClickContext> onClick) An item built from anItemBuilderthat runsonClickwhen clicked.static ViewItemViewItem.closeButton(com.github.retrooper.packetevents.protocol.item.ItemStack item) An item that closes the view when clicked.static ViewItemViewItem.of(com.github.retrooper.packetevents.protocol.item.ItemStack item) A display-only item without a click handler.static ViewItemViewItem.of(ItemBuilder builder) A display-only item built from anItemBuilder.ItemBuilder.onClick(Consumer<ClickContext> onClick) Shortcut forViewItem.clickable(build(), onClick).static ViewItemAn item that opens a lazily-created view (pushing back-history) when clicked.static ViewItemAn item that opens another view (pushing back-history) when clicked.static ViewItemViewItem.pageNext(com.github.retrooper.packetevents.protocol.item.ItemStack item) An item that advances the view'sPaginationone page.static ViewItemViewItem.pagePrevious(com.github.retrooper.packetevents.protocol.item.ItemStack item) An item that goes back one page in the view'sPagination.ViewItem.withClick(Consumer<ClickContext> onClick) A copy of this item with a different click handler (nullremoves it).ViewItem.withItem(com.github.retrooper.packetevents.protocol.item.ItemStack item) A copy of this item with a different item stack. -
Uses of ViewItem in me.agent.vgui.core.internal
Methods in me.agent.vgui.core.internal that return ViewItemModifier and TypeMethodDescriptionDefaultViewContents.get(int slot) DefaultViewContents.get(int row, int column) Methods in me.agent.vgui.core.internal with parameters of type ViewItemModifier and TypeMethodDescriptionvoidvoidDefaultViewContents.fillBorder(ViewItem item) voidDefaultViewContents.fillColumn(int column, ViewItem item) voidvoidvoidvoidvoidvoid