Class ModalContainer.Chest

java.lang.Object
io.rhythmknights.coreapi.component.module.ModalContainer.Chest
All Implemented Interfaces:
ModalContainer
Enclosing interface:
ModalContainer

public static class ModalContainer.Chest extends Object implements ModalContainer
  • 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 handler
      inventoryProvider - Inventory provider
      rows - Number of rows
  • Method Details

    • title

      @NotNull public @NotNull net.kyori.adventure.text.Component title()
      Specified by:
      title in interface ModalContainer
    • hasDynamicTitle

      public boolean hasDynamicTitle()
      Description copied from interface: ModalContainer
      Check if this container uses a dynamic title
      Specified by:
      hasDynamicTitle in interface ModalContainer
      Returns:
      true if this container has a dynamic title
    • getDynamicTitle

      @Nullable public @Nullable DynamicTitle getDynamicTitle()
      Description copied from interface: ModalContainer
      Get the dynamic title handler if one exists
      Specified by:
      getDynamicTitle in interface ModalContainer
      Returns:
      DynamicTitle handler or null if not using dynamic titles
    • setDynamicTitle

      public void setDynamicTitle(@NotNull @NotNull DynamicTitle dynamicTitle)
      Set a dynamic title handler
      Parameters:
      dynamicTitle - Dynamic title handler
    • title

      public void title(@NotNull @NotNull net.kyori.adventure.text.Component title)
      Specified by:
      title in interface ModalContainer
    • inventorySize

      public int inventorySize()
      Specified by:
      inventorySize in interface ModalContainer
    • modalType

      @NotNull public @NotNull ModalType modalType()
      Specified by:
      modalType in interface ModalContainer
    • rows

      public int rows()
      Specified by:
      rows in interface ModalContainer
    • rows

      public void rows(int rows)
    • createInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory createInventory(@NotNull @NotNull org.bukkit.inventory.InventoryHolder inventoryHolder)
      Specified by:
      createInventory in interface ModalContainer