Class ModalContainer.Chest
java.lang.Object
io.rhythmknights.coreapi.component.module.ModalContainer.Chest
- All Implemented Interfaces:
ModalContainer
- Enclosing interface:
ModalContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.rhythmknights.coreapi.component.module.ModalContainer
ModalContainer.Chest, ModalContainer.Typed -
Constructor Summary
ConstructorsConstructorDescriptionChest(@NotNull DynamicTitle dynamicTitle, InventoryProvider.Chest inventoryProvider, int rows) Constructor with dynamic titleChest(@NotNull net.kyori.adventure.text.Component title, InventoryProvider.Chest inventoryProvider, int rows) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.InventorycreateInventory(@NotNull org.bukkit.inventory.InventoryHolder inventoryHolder) @Nullable DynamicTitleGet the dynamic title handler if one existsbooleanCheck if this container uses a dynamic titleint@NotNull ModalTypeintrows()voidrows(int rows) voidsetDynamicTitle(@NotNull DynamicTitle dynamicTitle) Set a dynamic title handler@NotNull net.kyori.adventure.text.Componenttitle()voidtitle(@NotNull net.kyori.adventure.text.Component title)
-
Constructor Details
-
Chest
public Chest(@NotNull @NotNull net.kyori.adventure.text.Component title, @NotNull InventoryProvider.Chest inventoryProvider, int rows) -
Chest
public Chest(@NotNull @NotNull DynamicTitle dynamicTitle, @NotNull InventoryProvider.Chest inventoryProvider, int rows) Constructor with dynamic title- Parameters:
dynamicTitle- Dynamic title handlerinventoryProvider- Inventory providerrows- Number of rows
-
-
Method Details
-
title
@NotNull public @NotNull net.kyori.adventure.text.Component title()- Specified by:
titlein interfaceModalContainer
-
hasDynamicTitle
public boolean hasDynamicTitle()Description copied from interface:ModalContainerCheck if this container uses a dynamic title- Specified by:
hasDynamicTitlein interfaceModalContainer- Returns:
- true if this container has a dynamic title
-
getDynamicTitle
Description copied from interface:ModalContainerGet the dynamic title handler if one exists- Specified by:
getDynamicTitlein interfaceModalContainer- Returns:
- DynamicTitle handler or null if not using dynamic titles
-
setDynamicTitle
Set a dynamic title handler- Parameters:
dynamicTitle- Dynamic title handler
-
title
public void title(@NotNull @NotNull net.kyori.adventure.text.Component title) - Specified by:
titlein interfaceModalContainer
-
inventorySize
public int inventorySize()- Specified by:
inventorySizein interfaceModalContainer
-
modalType
- Specified by:
modalTypein interfaceModalContainer
-
rows
public int rows()- Specified by:
rowsin interfaceModalContainer
-
rows
public void rows(int rows) -
createInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory createInventory(@NotNull @NotNull org.bukkit.inventory.InventoryHolder inventoryHolder) - Specified by:
createInventoryin interfaceModalContainer
-