Class Modal
java.lang.Object
io.rhythmknights.coreapi.component.modal.BaseModal
io.rhythmknights.coreapi.component.modal.Modal
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Standard modal implementation of
BaseModal-
Constructor Summary
ConstructorsConstructorDescriptionModal(@NotNull ModalContainer modalContainer, @NotNull Set<InteractionModifier> interactionModifiers) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ChestModalBuildermodal()Creates aChestModalBuilderwith CHEST as theModalTypestatic @NotNull TypedModalBuilderCreates aTypedModalBuilderto build aModalstatic @NotNull PaginatedBuilderCreates aPaginatedBuilderto build aPaginatedModalstatic @NotNull ScrollingBuilderCreates aScrollingBuilderwith VERTICAL as theScrollTypestatic @NotNull ScrollingBuilderscrolling(@NotNull ScrollType scrollType) Creates aScrollingBuilderto build aScrollingModalMethods inherited from class io.rhythmknights.coreapi.component.modal.BaseModal
addItem, addItem, addSlotAction, addSlotAction, allInteractionsDisabled, allowsOtherActions, canDropItems, canPlaceItems, canSwapItems, canTakeItems, close, close, disableAllInteractions, disableItemDrop, disableItemPlace, disableItemSwap, disableItemTake, disableOtherActions, enableAllInteractions, enableItemDrop, enableItemPlace, enableItemSwap, enableItemTake, enableOtherActions, getFiller, getInventory, getModalItem, getModalItems, getRows, isUpdating, modalContainer, modalType, open, removeItem, removeItem, removeItem, removeItem, setCloseModalAction, setDefaultClickAction, setDefaultTopClickAction, setDragAction, setInventory, setItem, setItem, setItem, setOpenModalAction, setOutsideClickAction, setPlayerInventoryAction, setUpdateTitleOnItemClick, setUpdating, shouldUpdateTitleOnItemClick, title, update, updateItem, updateItem, updateItem, updateItem, updateTitle, updateTitleOnItemClick
-
Constructor Details
-
Modal
public Modal(@NotNull @NotNull ModalContainer modalContainer, @NotNull @NotNull Set<InteractionModifier> interactionModifiers)
-
-
Method Details
-
modal
@Contract("_ -> new") @NotNull public static @NotNull TypedModalBuilder modal(@NotNull @NotNull ModalType type) Creates aTypedModalBuilderto build aModal- Parameters:
type- TheModalTypeto be used- Returns:
- A
TypedModalBuilder - Since:
- 3.0.0
-
modal
Creates aChestModalBuilderwith CHEST as theModalType- Returns:
- A CHEST
ChestModalBuilder - Since:
- 3.0.0
-
paginated
Creates aPaginatedBuilderto build aPaginatedModal- Returns:
- A
PaginatedBuilder - Since:
- 3.0.0
-
scrolling
@Contract("_ -> new") @NotNull public static @NotNull ScrollingBuilder scrolling(@NotNull @NotNull ScrollType scrollType) Creates aScrollingBuilderto build aScrollingModal- Parameters:
scrollType- TheScrollTypeto be used by the modal- Returns:
- A
ScrollingBuilder - Since:
- 3.0.0
-
scrolling
Creates aScrollingBuilderwith VERTICAL as theScrollType- Returns:
- A vertical
ChestModalBuilder - Since:
- 3.0.0
-