← 返回译文库

MINECRAFT RESOURCE TRANSLATIONS

Text Placeholder API

用于 Minecraft 模组的占位符和文本处理库。

librarymanagement
访问原项目 ↗部分译文尚未就绪,显示可用译文及原文

项目介绍

About Placeholder API

It's a small, JIJ-able API that allows creation and parsing placeholders within strings and Minecraft Text Components. Placeholder API uses a simple format of %modid:type% or %modid:type data% (%modid:type/data% prior to 1.19). It also includes simple, general usage text format indented for simplifying user input in configs/chats/etc.

For users

It allows users to configure multiple mods in similar way without losing compatibility between mods. Placeholders allow changing what and where any information is present within compatible mods.

Additionally, Simplified Text Format allows to style them in readable way without the requirement of writing JSON manually or using generators.

Mods generally using this api should just include it directly, but you can downloaded updated version from here if needed!

For developers

Usage of Placeholder API is a simple way to achieve good mod compatibility without having to implement multiple mod specific apis. Additionally, the placeholder parsing system can be used for replacing own static (or dynamic placeholders) in Text created by player or read from config. This with combination of Simplified Text Format allows creating great user/admin experience.

*[JIJ]: Jar-in-Jar

对照原文

About Placeholder API

It's a small, JIJ-able API that allows creation and parsing placeholders within strings and Minecraft Text Components. Placeholder API uses a simple format of %modid:type% or %modid:type data% (%modid:type/data% prior to 1.19). It also includes simple, general usage text format indented for simplifying user input in configs/chats/etc.

For users

It allows users to configure multiple mods in similar way without losing compatibility between mods. Placeholders allow changing what and where any information is present within compatible mods.

Additionally, Simplified Text Format allows to style them in readable way without the requirement of writing JSON manually or using generators.

Mods generally using this api should just include it directly, but you can downloaded updated version from here if needed!

For developers

Usage of Placeholder API is a simple way to achieve good mod compatibility without having to implement multiple mod specific apis. Additionally, the placeholder parsing system can be used for replacing own static (or dynamic placeholders) in Text created by player or read from config. This with combination of Simplified Text Format allows creating great user/admin experience.

*[JIJ]: Jar-in-Jar

版本与依赖
版本Minecraft加载器依赖
3.2.0+26.326.3-pre-3 / 26.3fabric此版本未声明额外依赖
3.1.0-beta.1+26.226.2-pre-1 / 26.2fabric此版本未声明额外依赖
3.1.0-beta.1+26.226.2-pre-1fabric此版本未声明额外依赖
3.0.0+26.126.1 / 26.1.1 / 26.1.2fabric此版本未声明额外依赖
3.0.0-beta.2+26.126.1-pre-3 / 26.1 / 26.1.1 / 26w14a / 26.1.2fabric此版本未声明额外依赖
3.0.0-beta.1+26.126.1-snapshot-7fabric / quilt此版本未声明额外依赖
2.8.2+1.21.101.21.10 / 1.21.11fabric / quilt此版本未声明额外依赖
2.8.1+1.21.101.21.9 / 1.21.10 / 1.21.11-pre1 / 1.21.11fabric / quilt此版本未声明额外依赖
2.8.0+1.21.91.21.9-rc1 / 1.21.9 / 1.21.10fabric / quilt此版本未声明额外依赖
2.8.0-rc.1+1.21.91.21.9-pre1 / 1.21.9-pre2 / 1.21.9-pre3fabric / quilt此版本未声明额外依赖
2.7.2+1.21.81.21.6 / 1.21.7 / 1.21.8fabric / quilt此版本未声明额外依赖
2.7.1+1.21.61.21.6 / 1.21.7 / 1.21.8fabric / quilt此版本未声明额外依赖