ImageContainer

按命名空间、图片组和 ID 查找位图资产并生成文本组件。 Looks up bitmap assets by namespace, group name, and ID, then builds components.

Functions

Link copied to clipboard
open override fun add(value: ImageEntity)

追加一个实体。 / Appends an entity.

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

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

Link copied to clipboard
fun buildComponentText(namespace: String, basename: String, id: String, pixelY: Int, anchor: GuiAnchor? = null, addWidth: Boolean = true): ComponentText?

生成图片文本组件;未找到图片时返回 null。 Builds the image component, or returns null when the image is missing.

Link copied to clipboard
open override fun clear()

清空容器。 / Clears the registry.

Link copied to clipboard

返回当前实体列表的快照。 / Returns a snapshot of the current entries.

Link copied to clipboard
fun getImageEntity(namespace: String?, basename: String?, id: String?): ImageEntity?

查找图片;任一标识为空或不存在时返回 null。 Finds an image, returning null if any identifier is absent or unknown.