Uses of Class
top.magstar.framework.SmartString
Packages that use SmartString
Package
Description
-
Uses of SmartString in top.magstar.framework
Methods in top.magstar.framework that return SmartStringModifier and TypeMethodDescription@NotNull SmartString@NotNull SmartStringSmartString.append(@NotNull SmartString... args) @NotNull SmartStringSmartString.center(int width) 居中显示文本@NotNull SmartStringSmartString.getTranslated()@NotNull SmartStringSmartString.parseRGBFormat()@NotNull SmartStringSmartString.removeSpace()@NotNull SmartStringSmartString.replacePlaceholders(@NotNull String... input) @NotNull SmartStringSmartString.stripFormatting()移除所有颜色符号与格式标签,只保留纯文本@NotNull SmartStringSmartString.substring(int start, int end) 截取字符串的一部分@NotNull SmartStringSmartString.toLowerCase()转换为小写@NotNull SmartStringSmartString.toUpperCase()转换为大写Methods in top.magstar.framework with parameters of type SmartStringModifier and TypeMethodDescription@NotNull SmartStringSmartString.append(@NotNull SmartString... args) ItemBuilder.appendLore(SmartString... lore) Appends lore usingSmartString.ItemBuilder.insertLoreAt(int position, SmartString... lore) InsertsSmartStringlore at a specified position.ItemBuilder.prependLore(SmartString... lore) PrependsSmartStringlore at the beginning.ItemBuilder.setDisplayName(SmartString name) Sets the display name using aSmartString.ItemBuilder.setLore(SmartString... lore) Sets the lore usingSmartStringlines. -
Uses of SmartString in top.magstar.framework.configs
Methods in top.magstar.framework.configs that return SmartStringModifier and TypeMethodDescriptionMessageTemplate.combineMessages(T... keys) 组合多个消息MessageTemplate.getCenteredMessage(T key, int width, Object... placeholders) 获取居中显示的消息MessageTemplate.getParsedSmartMessage(T key) 获取已解析的 SmartString(处理所有格式但不处理占位符)MessageTemplate.getRawSmartMessage(T key) 获取原始 SmartString(不处理占位符)final SmartStringMagstarConfig.getSmartMessage(String s) Gets a formatted message string from this configuration.MessageTemplate.getSmartMessage(T key, Object... placeholders) 获取 SmartString 消息(推荐使用)MessageTemplate.joinMessages(String separator, T... keys) 使用分隔符连接多个消息Methods in top.magstar.framework.configs that return types with arguments of type SmartStringModifier and TypeMethodDescriptionMessageTemplate.getSmartMessageList(T key, Object... placeholders) 获取 SmartString 消息列表MessageTemplate.getSmartMessages(T... keys) 批量获取消息 -
Uses of SmartString in top.magstar.framework.gui.interfaces
Methods in top.magstar.framework.gui.interfaces that return SmartStringMethods in top.magstar.framework.gui.interfaces with parameters of type SmartStringModifier and TypeMethodDescriptionvoidChestGUI.setPlaceholderValues(int slot, SmartString... values) 设置指定槽位的占位符值voidChestGUI.updateTitle(SmartString newTitle) 更新GUI标题 -
Uses of SmartString in top.magstar.framework.gui.utils
Methods in top.magstar.framework.gui.utils that return SmartStringModifier and TypeMethodDescriptionGUIBuilder.getTitle()获取GUI标题PagedGUIBuilder.getTitle()获取GUI标题Methods in top.magstar.framework.gui.utils with parameters of type SmartStringModifier and TypeMethodDescriptionItemBuilderGUI.addLore(SmartString... lore) 添加物品描述行 - 支持SmartStringGUIBuilder.border(org.bukkit.Material material, SmartString name) 设置边框物品 - 使用SmartString名称PagedGUIBuilder.border(org.bukkit.Material material, SmartString name) 设置边框物品 - 使用SmartString名称GUIBuilder.fill(org.bukkit.Material material, SmartString name) 设置填充物品 - 使用SmartString名称PagedGUIBuilder.fill(org.bukkit.Material material, SmartString name) 设置填充物品 - 使用SmartString名称ItemBuilderGUI.lore(SmartString... lore) 设置物品描述 - 支持SmartStringItemBuilderGUI.name(SmartString name) 设置物品名称 - 支持SmartStringGUIBuilder.title(SmartString title) 设置标题 - 支持SmartStringPagedGUIBuilder.title(SmartString title) 设置标题 - 支持SmartString -
Uses of SmartString in top.magstar.framework.input.interfaces
Methods in top.magstar.framework.input.interfaces that return SmartString -
Uses of SmartString in top.magstar.framework.input.utils
Methods in top.magstar.framework.input.utils that return SmartStringMethods in top.magstar.framework.input.utils with parameters of type SmartStringModifier and TypeMethodDescriptionInputHandlerBuilder.promptMessage(@NotNull SmartString message) 设置提示消息 - 支持SmartString