buildComponentString

fun buildComponentString(namespace: String, basename: String, id: String, pixelY: Int, anchor: GuiAnchor? = null, addWidth: Boolean = true): String(source)

生成图片的原始组件字符串;未找到图片时返回空串。 Builds the image's raw component string, or an empty string if missing.

Parameters

pixelY

纵向像素偏移;正数向上。 / Vertical pixel offset, positive upward.

anchor

可选的 GUI 百分比锚点。 / Optional GUI percentage anchor.

addWidth

是否在末尾补回图片宽度。 / Whether to advance by the image's width afterward.