Class MenuHolder

java.lang.Object
me.kzheart.klib.ui.MenuHolder
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public final class MenuHolder extends Object implements org.bukkit.inventory.InventoryHolder
Bukkit 平台返回契约;挂载状态与会话操作由 Kotlin 实现。 旧 Kotlin 调用 val inventory: Inventory = holder.inventory(或 getInventory())依赖平台类型;挂载前仍返回 null。
  • Method Details

    • playerId

      public UUID playerId()
    • session

      public me.kzheart.klib.ui.MenuSession session()
    • model

      public me.kzheart.klib.ui.MenuModel model()
    • refresh

      public void refresh(me.kzheart.klib.ui.MenuModel model)
    • refresh

      public void refresh()
    • close

      public me.kzheart.klib.ui.MenuCloseResult close(me.kzheart.klib.ui.CloseReason reason)
    • getInventory

      public org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder