HeadTarget

data class HeadTarget(val type: String = "viewer", val uuid: String? = null, val name: String? = null, val key: String? = null, val script: String? = null, val refresh: Int = 20)(source)

头像目标:当前观看者、固定玩家、布局变量,或返回 Player/UUID/玩家名/null 的 Kether。 Head target: viewer, fixed player, layout variable, or Kether returning a Player/UUID/name/null.

Parameters

type

viewer、player、variable 或 kether。 / viewer, player, variable or kether.

uuid

固定玩家 UUID;不能同时填写 name。 / Fixed UUID, mutually exclusive with name.

name

固定玩家名;在线玩家优先使用其服务器档案。 / Fixed player name, preferring an online server profile.

key

要读取的布局变量名。 / Layout variable key to read.

script

动态目标 Kether,不会在渲染线程等待 Future。 / Dynamic-target Kether, never waited on by the renderer.

refresh

动态目标两次完成后求值之间的 tick 数,必须为正。 / Positive tick interval between completed dynamic-target evaluations.

Constructors

Link copied to clipboard
constructor(type: String = "viewer", uuid: String? = null, name: String? = null, key: String? = null, script: String? = null, refresh: Int = 20)

Properties

Link copied to clipboard
val key: String?
Link copied to clipboard
val name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uuid: String?

Functions

Link copied to clipboard
fun validate()