Index

A B C D E G H I L M N O P R S T V Y 
All Classes and Interfaces|All Packages

A

accept(MenuClick) - Method in interface me.kzheart.klib.ui.MenuAction
 
action(String, RichText, Consumer<ChatPanelSession>) - Static method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
amount() - Method in class me.kzheart.klib.ui.drop.InventoryAction
 

B

bukkit() - Static method in interface me.kzheart.klib.ui.MenuInventoryFactory
 
Button - Annotation Interface in me.kzheart.klib.ui.annotation
 

C

cancel(Player) - Method in interface me.kzheart.klib.ui.chat.ChatPanelSignInput
放弃玩家当前的告示牌输入;之后的提交不再回调。
ChatPanelButton - Class in me.kzheart.klib.ui.chat
按钮的 Java 平台返回契约;不可变状态、路由和回调由 Kotlin 实现。 旧 Kotlin 对 id()/hover()/value() 判空后重复取值依赖平台类型;可选按钮字段仍返回 null。
ChatPanelSignInput - Interface in me.kzheart.klib.ui.chat
告示牌输入实现。所有方法在主线程调用,回调也必须在主线程触发。
Click - Annotation Interface in me.kzheart.klib.ui.annotation
 
close(CloseReason) - Method in class me.kzheart.klib.ui.MenuHolder
 
command(RichText, String) - Static method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
copy(RichText, String) - Static method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
create(InventoryHolder, int, String) - Method in interface me.kzheart.klib.ui.MenuInventoryFactory
 

D

drag(ItemStack, Map<Integer, Integer>) - Static method in class me.kzheart.klib.ui.drop.InventoryAction
 
DRAG - Enum constant in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
 
dragAmounts() - Method in class me.kzheart.klib.ui.drop.InventoryAction
 

E

Entries - Annotation Interface in me.kzheart.klib.ui.annotation
 

G

getInventory() - Method in class me.kzheart.klib.ui.MenuHolder
 

H

hover() - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
hover(RichText) - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 

I

id() - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
InventoryAction - Class in me.kzheart.klib.ui.drop
投放输入的 Java 平台返回契约;快照与校验由 Kotlin 实现。 旧 Kotlin 调用 if (action.item() != null) action.item().amount 依赖平台类型;TAKE 仍无物品快照。
InventoryAction.Type - Enum Class in me.kzheart.klib.ui.drop
 
item() - Method in class me.kzheart.klib.ui.drop.InventoryAction
 
ItemReturnTarget - Interface in me.kzheart.klib.ui
归还菜单持有的物品,并报告仍需调用方处理的物品堆。

L

label() - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
layout() - Element in annotation interface me.kzheart.klib.ui.annotation.Menu
 

M

me.kzheart.klib.ui - package me.kzheart.klib.ui
物品栏菜单、分页、投放区与作用域聊天提示。
me.kzheart.klib.ui.annotation - package me.kzheart.klib.ui.annotation
 
me.kzheart.klib.ui.chat - package me.kzheart.klib.ui.chat
 
me.kzheart.klib.ui.drop - package me.kzheart.klib.ui.drop
 
me.kzheart.klib.ui.prompt - package me.kzheart.klib.ui.prompt
 
Menu - Annotation Interface in me.kzheart.klib.ui.annotation
 
MenuAction - Interface in me.kzheart.klib.ui
与已编译菜单条目关联的回调。
MenuErrorHandler - Interface in me.kzheart.klib.ui
菜单动作失败后调用、面向玩家的可配置错误边界。
MenuHolder - Class in me.kzheart.klib.ui
Bukkit 平台返回契约;挂载状态与会话操作由 Kotlin 实现。 旧 Kotlin 调用 val inventory: Inventory = holder.inventory(或 getInventory())依赖平台类型;挂载前仍返回 null。
MenuInventoryFactory - Interface in me.kzheart.klib.ui
Creates a host inventory while keeping Klib ownership, event protection and lifecycle.
model() - Method in class me.kzheart.klib.ui.MenuHolder
 

N

none() - Static method in interface me.kzheart.klib.ui.MenuAction
 

O

onError(Player, MenuModel, MenuClick, Throwable) - Method in interface me.kzheart.klib.ui.MenuErrorHandler
 
open(Player, String[], Consumer<String[]>) - Method in interface me.kzheart.klib.ui.chat.ChatPanelSignInput
为玩家打开一块预填四行文字的告示牌。
OverflowSink - Interface in me.kzheart.klib.ui
当 ItemReturnTarget 失败或报告溢出时,菜单持有物品的最终兜底去向。 Bukkit 桥接会将物品掉落在玩家脚下。

P

parse(String) - Method in interface me.kzheart.klib.ui.prompt.PromptParser
 
permission() - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
permission(String) - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
place(int, ItemStack, int) - Static method in class me.kzheart.klib.ui.drop.InventoryAction
 
PLACE - Enum constant in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
 
playerId() - Method in class me.kzheart.klib.ui.MenuHolder
 
PromptParser<T> - Interface in me.kzheart.klib.ui.prompt
解析一行聊天输入;返回空表示提示应继续等待。

R

refresh() - Method in class me.kzheart.klib.ui.MenuHolder
 
refresh(MenuModel) - Method in class me.kzheart.klib.ui.MenuHolder
 
reset(Consumer<ChatPanelSession>) - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
resolve(String) - Method in interface me.kzheart.klib.ui.YamlItemResolver
 
returnItems(List<ItemStack>) - Method in interface me.kzheart.klib.ui.ItemReturnTarget
 
returnItems(List<ItemStack>) - Method in interface me.kzheart.klib.ui.OverflowSink
尽可能接收物品,并准确返回仍无持久去向的物品堆。

S

session() - Method in class me.kzheart.klib.ui.MenuHolder
 
SHIFT_INSERT - Enum constant in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
 
shiftInsert(ItemStack) - Static method in class me.kzheart.klib.ui.drop.InventoryAction
 
slot() - Method in class me.kzheart.klib.ui.drop.InventoryAction
 
suggest(RichText, String) - Static method in class me.kzheart.klib.ui.chat.ChatPanelButton
 

T

take(int, int) - Static method in class me.kzheart.klib.ui.drop.InventoryAction
 
TAKE - Enum constant in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
 
title() - Element in annotation interface me.kzheart.klib.ui.annotation.Menu
 
type() - Method in class me.kzheart.klib.ui.drop.InventoryAction
 

V

value() - Element in annotation interface me.kzheart.klib.ui.annotation.Button
 
value() - Element in annotation interface me.kzheart.klib.ui.annotation.Click
 
value() - Element in annotation interface me.kzheart.klib.ui.annotation.Entries
 
value() - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
value(String) - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
value(RichText) - Method in class me.kzheart.klib.ui.chat.ChatPanelButton
 
valueOf(String) - Static method in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
Returns the enum constant of this class with the specified name.
values() - Static method in enum class me.kzheart.klib.ui.drop.InventoryAction.Type
Returns an array containing the constants of this enum class, in the order they are declared.

Y

YamlItemResolver - Interface in me.kzheart.klib.ui
从已解析的 YAML 菜单模板中解析物品标识符。
A B C D E G H I L M N O P R S T V Y 
All Classes and Interfaces|All Packages