Package me.kzheart.klib.script
Interface ScriptPlatform
public interface ScriptPlatform
原框架游戏语句使用的服务器能力:广播、标题、音效、坐标、物品与侧边栏。
参数中的玩家与返回的对象由宿主平台决定(Bukkit 下为 Player、Location、ItemStack、Material)。
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidconsole()控制台发送者,switch console使用。按名称查找在线玩家,找不到返回 null。voidsound 以resource:开头时为资源包音效名,否则为枚举名。default voidscoreboard(Object player, List<String> lines) 显示侧边栏,lines 首行为标题;lines 为 null 时移除。默认不支持。voidvoid
-
Method Details
-
onlinePlayerNames
-
broadcast
-
console
Object console()控制台发送者,switch console使用。 -
player
按名称查找在线玩家,找不到返回 null。 -
actionBar
-
title
-
playSound
sound 以resource:开头时为资源包音效名,否则为枚举名。 -
stopSound
-
location
-
material
-
itemStack
-
scoreboard
显示侧边栏,lines 首行为标题;lines 为 null 时移除。默认不支持。
-