Bukkit 能力、占位符与稳定性:全量签名
本页目录
Minecraft Forge / Bukkit 1.12.2。
本章列出开放接口及保留辅助类型的公开声明。 它是可检索的签名参考,不替代用法、线程、权限和回执说明;请先阅读 API 入门、服务端指南 或 客户端指南。 按类型查询参数、泛型、重载、返回值与异常;继承的方法遵守所列父类型的契约。
com.heartlion.shadowui.api.ChestReplaceRegistration
- 稳定性:稳定。
- 类型:
interface;泛型:``;父类:无显式父类;接口:AutoCloseable。
Handle returned for an externally contributed ReplaceChest definition.
getOwner · 1
public String getOwner();
返回/字段类型:String;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
getGuiName · 2
public String getGuiName();
返回/字段类型:String;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
close · 3
public void close();
返回/字段类型:void;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
com.heartlion.shadowui.api.ClientModuleAPI
- 稳定性:稳定。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
Capability and message-routing view exposed to Bukkit integrations.
FEATURE_CLIENT_API · 1
public static final String FEATURE_CLIENT_API = "shadowui_client_api_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODULAR_CLIENT · 2
public static final String FEATURE_MODULAR_CLIENT = ClientModuleRouting.MODULAR_CLIENT_FEATURE;
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_PROTOCOL · 3
public static final String FEATURE_PROTOCOL = "protocol_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MESSAGE_LIMITS · 4
public static final String FEATURE_MESSAGE_LIMITS = "message_limits";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_CUSTOMUI_COMPONENTS · 5
public static final String FEATURE_CUSTOMUI_COMPONENTS = "customui_components";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_CUSTOMUI_EDITOR · 6
public static final String FEATURE_CUSTOMUI_EDITOR = "customui_editor_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_REPLACE_CHEST_INTERACTIVE · 7
public static final String FEATURE_REPLACE_CHEST_INTERACTIVE = "replacechest_interactive_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_DYNAMIC_KEYBIND · 8
public static final String FEATURE_DYNAMIC_KEYBIND = "dynamic_keybind";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_CAMERA_CONTROL · 9
public static final String FEATURE_CAMERA_CONTROL = "camera_control";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_DECLARATIVE_HUD · 10
public static final String FEATURE_DECLARATIVE_HUD = "declarative_hud";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MANAGED_HUD_CONFIG · 11
public static final String FEATURE_MANAGED_HUD_CONFIG = "managed_hud_config_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_RESOURCE_MANIFEST · 12
public static final String FEATURE_RESOURCE_MANIFEST = "resource_manifest_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_ENCRYPTED_RESOURCE_PACK · 13
public static final String FEATURE_ENCRYPTED_RESOURCE_PACK = "encrypted_resource_pack_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_RESOURCE_PROFILE_V2 · 14
public static final String FEATURE_RESOURCE_PROFILE_V2 = "resource_profile_v2";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_CONFIG_PROFILE · 15
public static final String FEATURE_MODEL_CONFIG_PROFILE = "model_config_profile_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL · 16
public static final String FEATURE_MODEL = "shadowmodel";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_API · 17
public static final String FEATURE_MODEL_API = "shadowmodel_api_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_SOUND · 18
public static final String FEATURE_MODEL_SOUND = "model_sound";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_TOOLTIP · 19
public static final String FEATURE_MODEL_TOOLTIP = "model_tooltip";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_SKILLS · 20
public static final String FEATURE_MODEL_SKILLS = "model_skills_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_MOUNT · 21
public static final String FEATURE_MODEL_MOUNT = "model_mount_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_COLLISION · 22
public static final String FEATURE_MODEL_COLLISION = "model_collision_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_POSE_REPORT · 23
public static final String FEATURE_MODEL_POSE_REPORT = "model_pose_report_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_MODEL_SIMULATION_LEASE · 24
public static final String FEATURE_MODEL_SIMULATION_LEASE = "model_simulation_lease_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
FEATURE_AW_PREVIEW_GUI · 25
public static final String FEATURE_AW_PREVIEW_GUI = "aw_preview_gui_v1";
返回/字段类型:String;类别:field;稳定性:稳定。
hasHandshake · 26
public static boolean hasHandshake(Player player);
返回/字段类型:boolean;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Player
返回路径摘要
capabilities != null && capabilities.getProtocolVersion() > 0
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
supports · 27
public static boolean supports(Player player, String feature);
返回/字段类型:boolean;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Playerfeature: String
返回路径摘要
player != null && ProtocolCapabilityRegistry.supports(player, feature)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
isModularClient · 28
public static boolean isModularClient(Player player);
返回/字段类型:boolean;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Player
返回路径摘要
supports(player, FEATURE_MODULAR_CLIENT)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
hasModel · 29
public static boolean hasModel(Player player);
返回/字段类型:boolean;类别:method;稳定性:稳定。
Returns whether the client advertises the ShadowModel module.
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Player
返回路径摘要
supports(player, FEATURE_MODEL)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
hasModelApi · 30
public static boolean hasModelApi(Player player);
返回/字段类型:boolean;类别:method;稳定性:稳定。
Returns whether the client advertises the typed ShadowModel API v1 contract.
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Player
返回路径摘要
supports(player, FEATURE_MODEL_API)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
featureFlags · 31
public static Set<String> featureFlags(Player player);
返回/字段类型:Set<String>;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
player: Player
返回路径摘要
player == null ? java.util.Collections.emptySet() : ProtocolCapabilityRegistry.featureFlags(player)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.CustomGuiComponents
- 稳定性:稳定。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
gui · 1
public static JsonObject gui(String id, int width, int height);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringwidth: intheight: int
返回路径摘要
gui
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
canvas · 2
public static JsonObject canvas(String id, int x, int y, int width, int height);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: int
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
canvas · 3
public static JsonObject canvas(String id, int x, int y, int width, int height, int contentWidth, int contentHeight);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: intcontentWidth: intcontentHeight: int
方法组包中的字面量标识
clip=true
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
text · 4
public static JsonObject text(String id, int x, int y, int width, String text);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: inttext: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
image · 5
public static JsonObject image(String id, int x, int y, int width, int height, String texture);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: inttexture: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
button · 6
public static JsonObject button(String id, int x, int y, int width, int height, String text, String action);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: inttext: Stringaction: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
texturedButton · 7
public static JsonObject texturedButton(String id, int x, int y, int width, int height, String text, String action, String normal, String hover, String pressed, String disabled);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: inttext: Stringaction: Stringnormal: Stringhover: Stringpressed: Stringdisabled: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
textInput · 8
public static JsonObject textInput(String id, int x, int y, int width, int height, String variable, String defaultValue);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: intvariable: StringdefaultValue: String
方法组包中的字面量标识
mode=text
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
numberInput · 9
public static JsonObject numberInput(String id, int x, int y, int width, int height, String variable, int min, int max, int defaultValue);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: intvariable: Stringmin: intmax: intdefaultValue: int
方法组包中的字面量标识
mode=number
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
submitInput · 10
public static JsonObject submitInput(JsonObject component, String action);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
Configures a text input to synchronize only when submitted and to submit on Enter.
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
component: JsonObjectaction: String
方法组包中的字面量标识
syncMode=submit
调用条件摘要
Complex expression/callback: PARENTHESIZED
返回路径摘要
component
显式抛出的异常类型
IllegalArgumentException
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
inputStyle · 11
public static JsonObject inputStyle(JsonObject component, boolean drawBackground, String textColor, String placeholder, String placeholderColor);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
component: JsonObjectdrawBackground: booleantextColor: Stringplaceholder: StringplaceholderColor: String
调用条件摘要
(component == null)(textColor != null && !textColor.isEmpty())(placeholder != null && !placeholder.isEmpty())(placeholderColor != null && !placeholderColor.isEmpty())
返回路径摘要
component
显式抛出的异常类型
IllegalArgumentException
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
dropdown · 12
public static JsonObject dropdown(String id, int x, int y, int width, int height, String variable, String defaultValue, JsonArray options);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: intvariable: StringdefaultValue: Stringoptions: JsonArray
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
scroll · 13
public static JsonObject scroll(String id, String target, int x, int y, int width, int height, String direction);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringtarget: Stringx: inty: intwidth: intheight: intdirection: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
slot · 14
public static JsonObject slot(String id, int x, int y, String itemId, int count);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intitemId: Stringcount: int
方法组包中的字面量标识
tooltip=true
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
entity · 15
public static JsonObject entity(String id, int x, int y, int width, int height, String entityId, int scale);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
id: Stringx: inty: intwidth: intheight: intentityId: Stringscale: int
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
option · 16
public static JsonObject option(String value, String label);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
value: Stringlabel: String
返回路径摘要
option
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
add · 17
public static void add(JsonObject parent, JsonObject child);
返回/字段类型:void;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
parent: JsonObjectchild: JsonObject
调用条件摘要
(!parent.has("components") || !parent.get("components").isJsonArray())
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
background · 18
public static JsonObject background(JsonObject component, String texture);
返回/字段类型:JsonObject;类别:method;稳定性:稳定。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
component: JsonObjecttexture: String
返回路径摘要
component
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.CustomGuiConfigReader
- 稳定性:实验。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
load · 1
public static JsonObject load(File file) throws IOException;
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
file: File
调用条件摘要
(name.endsWith(".yml") || name.endsWith(".yaml"))
返回路径摘要
fromYaml(YamlConfiguration.loadConfiguration(file))new JsonParser().parse(reader).getAsJsonObject()
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.CustomGuiInstance
- 稳定性:实验。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
getPlayer · 1
public Player getPlayer();
返回/字段类型:Player;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
返回路径摘要
Bukkit.getPlayerExact(playerName)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getGuiName · 2
public String getGuiName();
返回/字段类型:String;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
返回路径摘要
guiName
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getConfig · 3
public JsonObject getConfig();
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
返回路径摘要
copy(config)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
setConfig · 4
public void setConfig(JsonObject config);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
config: JsonObject
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
authorizesClick · 5
public boolean authorizesClick(String componentId, String action);
返回/字段类型:boolean;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
componentId: Stringaction: String
调用条件摘要
(!validId(componentId) || !validAction(action))(component == null || !component.has("click"))(click.isJsonObject() && click.getAsJsonObject().has("action"))(click.isJsonPrimitive() && click.getAsJsonPrimitive().isString())
返回路径摘要
falseaction.equals(configured)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
updateComponent · 6
public void updateComponent(JsonObject component);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
component: JsonObject
调用条件摘要
(!validId(id))(existing != null)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
removeComponent · 7
public void removeComponent(String componentId);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
componentId: String
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getVariables · 8
public JsonObject getVariables();
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
返回路径摘要
copy(variables)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getComponents · 9
public JsonObject getComponents();
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
返回路径摘要
copy(components)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
syncClientState · 10
public void syncClientState(JsonObject variables, JsonObject components);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
variables: JsonObjectcomponents: JsonObject
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
hasVariable · 11
public boolean hasVariable(String key);
返回/字段类型:boolean;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
key: String
返回路径摘要
variables.has(key)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getString · 12
public String getString(String key, String fallback);
返回/字段类型:String;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
key: Stringfallback: String
返回路径摘要
variables.has(key) && !variables.get(key).isJsonNull() ? variables.get(key).getAsString() : fallback
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getInt · 13
public int getInt(String key, int fallback);
返回/字段类型:int;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
key: Stringfallback: int
返回路径摘要
variables.has(key) && !variables.get(key).isJsonNull() ? variables.get(key).getAsInt() : fallback
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getBoolean · 14
public boolean getBoolean(String key, boolean fallback);
返回/字段类型:boolean;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
参数名与类型
key: Stringfallback: boolean
返回路径摘要
variables.has(key) && !variables.get(key).isJsonNull() ? variables.get(key).getAsBoolean() : fallback
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
open · 15
public void open();
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
调用条件摘要
(player != null)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
sync · 16
public void sync();
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
调用条件摘要
(player != null)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
close · 17
public void close();
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:JSON 快照为复制;客户端状态仍不可信;fallback 不覆盖类型转换错误,setConfig 不自行下发。 详见完整流程与边界。
调用条件摘要
(player != null)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.CustomGuiInstances
- 稳定性:实验。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
create · 1
public static CustomGuiInstance create(Player player, JsonObject guiConfig);
返回/字段类型:CustomGuiInstance;类别:method;稳定性:实验。
使用说明:玩家 UUID 与小写 GUI 名组成实例键,重复 create 替换;不要清理其他插件的全部实例。 详见完整流程与边界。
参数名与类型
player: PlayerguiConfig: JsonObject
返回路径摘要
instance
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
get · 2
public static CustomGuiInstance get(Player player, String guiName);
返回/字段类型:CustomGuiInstance;类别:method;稳定性:实验。
使用说明:玩家 UUID 与小写 GUI 名组成实例键,重复 create 替换;不要清理其他插件的全部实例。 详见完整流程与边界。
参数名与类型
player: PlayerguiName: String
返回路径摘要
INSTANCES.get(key(player, guiName))
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
getOrCreate · 3
public static CustomGuiInstance getOrCreate(Player player, String guiName);
返回/字段类型:CustomGuiInstance;类别:method;稳定性:实验。
使用说明:玩家 UUID 与小写 GUI 名组成实例键,重复 create 替换;不要清理其他插件的全部实例。 详见完整流程与边界。
参数名与类型
player: PlayerguiName: String
调用条件摘要
(instance == null)
返回路径摘要
instance
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
remove · 4
public static void remove(Player player, String guiName);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:玩家 UUID 与小写 GUI 名组成实例键,重复 create 替换;不要清理其他插件的全部实例。 详见完整流程与边界。
参数名与类型
player: PlayerguiName: String
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
removeAll · 5
public static void removeAll(Player player);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:玩家 UUID 与小写 GUI 名组成实例键,重复 create 替换;不要清理其他插件的全部实例。 详见完整流程与边界。
参数名与类型
player: Player
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.CustomGuiScripts
- 稳定性:实验。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
apply · 1
public static boolean apply(JsonObject guiConfig, JsonObject script);
返回/字段类型:boolean;类别:method;稳定性:实验。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
guiConfig: JsonObjectscript: JsonObject
方法组包中的字面量标识
visible=truevisible=false
调用条件摘要
(target == null || !matches(target, object(script, "when")))(script.has("set") && script.get("set").isJsonObject())("resize".equalsIgnoreCase(action))("setTexture".equalsIgnoreCase(action) || "texture".equalsIgnoreCase(action))("setBackground".equalsIgnoreCase(action) || "background".equalsIgnoreCase(action))("show".equalsIgnoreCase(action))("hide".equalsIgnoreCase(action))("toggleVisible".equalsIgnoreCase(action))
返回路径摘要
falsetrue
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
applyAll · 2
public static int applyAll(JsonObject guiConfig, JsonArray scripts);
返回/字段类型:int;类别:method;稳定性:实验。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
guiConfig: JsonObjectscripts: JsonArray
调用条件摘要
(element.isJsonObject() && apply(guiConfig, element.getAsJsonObject()))
返回路径摘要
changed
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
findComponent · 3
public static JsonObject findComponent(JsonObject parent, String id);
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:全部公开调用方法按当前源码和实际消费核对;参数、复制/原地修改、失败及状态所有权见本指南,不代替独立 QA 或运行验收。 详见完整流程与边界。
参数名与类型
parent: JsonObjectid: String
调用条件摘要
(id == null || id.isEmpty() || parent == null)(id.equals(string(parent, "id", "")))(children == null)(element.isJsonObject())(found != null)
返回路径摘要
nullparentfound
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.PlaceholderAPI
- 稳定性:实验。
- 类型:
class;泛型:;父类:`无显式父类`;接口:。
resolve · 1
public static String resolve(Player player, String text);
返回/字段类型:String;类别:method;稳定性:实验。
使用说明:先本地后外部,展示字段才解析;结果 map 合并重复文本,同 id Provider 会覆盖且 backend 首次选择后缓存。 详见完整流程与边界。
参数名与类型
player: Playertext: String
返回路径摘要
PlaceholderService.resolve(player, text)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
resolveAll · 2
public static Map<String, String> resolveAll(Player player, Iterable<String> texts);
返回/字段类型:Map<String, String>;类别:method;稳定性:实验。
使用说明:先本地后外部,展示字段才解析;结果 map 合并重复文本,同 id Provider 会覆盖且 backend 首次选择后缓存。 详见完整流程与边界。
参数名与类型
player: Playertexts: Iterable<String>
返回路径摘要
PlaceholderService.resolveAll(player, texts)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
resolveGui · 3
public static JsonObject resolveGui(Player player, JsonObject guiConfig);
返回/字段类型:JsonObject;类别:method;稳定性:实验。
使用说明:先本地后外部,展示字段才解析;结果 map 合并重复文本,同 id Provider 会覆盖且 backend 首次选择后缓存。 详见完整流程与边界。
参数名与类型
player: PlayerguiConfig: JsonObject
返回路径摘要
PlaceholderService.resolveGui(player, guiConfig)
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
registerProvider · 4
public static void registerProvider(BusinessPlaceholderProvider provider);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:先本地后外部,展示字段才解析;结果 map 合并重复文本,同 id Provider 会覆盖且 backend 首次选择后缓存。 详见完整流程与边界。
参数名与类型
provider: BusinessPlaceholderProvider
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
unregisterProvider · 5
public static void unregisterProvider(String id);
返回/字段类型:void;类别:method;稳定性:实验。
使用说明:先本地后外部,展示字段才解析;结果 map 合并重复文本,同 id Provider 会覆盖且 backend 首次选择后缓存。 详见完整流程与边界。
参数名与类型
id: String
条件和返回路径可能位于循环/内层回调,不能读作一组必需前置条件或完整异常清单;不包含整个方法体,也不代表实机验收。
com.heartlion.shadowui.api.status.DeprecatedApi
- 稳定性:未分类。
- 类型:
annotation_type;泛型:;父类:`无显式父类`;接口:。
replacement · 1
public String replacement();
返回/字段类型:String;类别:method;稳定性:未分类。
removeAfter · 2
public String removeAfter() default "\u672a\u8ba1\u5212";
返回/字段类型:String;类别:method;稳定性:未分类。
com.heartlion.shadowui.api.status.ExperimentalApi
- 稳定性:未分类。
- 类型:
annotation_type;泛型:;父类:`无显式父类`;接口:。
value · 1
public String value() default "\u63a5\u53e3\u53ef\u80fd\u5728\u6b21\u7248\u672c\u8c03\u6574";
返回/字段类型:String;类别:method;稳定性:未分类。
com.heartlion.shadowui.placeholder.BusinessPlaceholderProvider
- 稳定性:实验。
- 类型:
interface;泛型:;父类:`无显式父类`;接口:。
getId · 1
public String getId();
返回/字段类型:String;类别:method;稳定性:实验。
使用说明:Provider id 不自动成为 token 前缀;不属于自己返回 null,不依赖并发 map 的遍历顺序。 详见完整流程与边界。
resolve · 2
public String resolve(Player player, String key);
返回/字段类型:String;类别:method;稳定性:实验。
使用说明:Provider id 不自动成为 token 前缀;不属于自己返回 null,不依赖并发 map 的遍历顺序。 详见完整流程与边界。