O Placeholder API
To małe API typu JIJ, które umożliwia tworzenie i przetwarzanie placeholderów w ciągach znaków oraz komponentach tekstowych Minecrafta. Placeholder API używa prostego formatu %modid:type% lub %modid:type data% (%modid:type/data% przed wersją 1.19). Zawiera również prosty, ogólny format tekstu przeznaczony do upraszczania danych wprowadzanych przez użytkownika w konfiguracjach/czatach itp.
Dla użytkowników
Pozwala użytkownikom konfigurować wiele modów w podobny sposób bez utraty kompatybilności między modami. Placeholdery umożliwiają zmianę tego, jakie informacje i gdzie są obecne w kompatybilnych modach.
Dodatkowo Simplified Text Format pozwala stylizować je w czytelny sposób bez konieczności ręcznego pisania JSON-a lub korzystania z generatorów.
- Korzystanie z placeholderów
- Domyślna lista placeholderów
- Lista placeholderów modów
- QuickText
- Simplified Text Format
Mody ogólnie korzystające z tego api powinny po prostu dołączać je bezpośrednio, ale w razie potrzeby możesz pobrać zaktualizowaną wersję stąd!
Dla deweloperów
Korzystanie z Placeholder API to prosty sposób na osiągnięcie dobrej kompatybilności modów bez konieczności implementowania wielu api specyficznych dla poszczególnych modów. Dodatkowo system przetwarzania placeholderów może być używany do zastępowania własnych statycznych (lub dynamicznych placeholderów) w tekście utworzonym przez gracza lub odczytanym z konfiguracji. W połączeniu z Simplified Text Format pozwala to stworzyć świetne doświadczenie dla użytkownika/administratora.
- Pierwsze kroki
- Dodawanie placeholderów
- Przetwarzanie placeholderów
- TextNodes i NodeParsers
- Korzystanie z Simplified Text Format (TextParserV1)
[JIJ]: Jar-in-Jar
Jak zainstalować Text Placeholder API
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.17–26.3 on Fabric or Quilt automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric or Quilt
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file placeholder-api-3.2.0+26.3.jar (249 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Text Placeholder API should be in the list.
On a server
A server on Fabric or Quilt
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
Wersje
Z zależnościami
| Minecraft | Loader | Plik | Data | Akcje |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3249 KB 2978 | ||
| 26.2 | Fabric | 26.2249 KB 1363 | — | |
| 26.1 | Fabric | 26.1248 KB 490 | — | |
| 1.21.11 | Fabric, Quilt | 1.21.11262 KB 5129 | — | |
| 1.21.1 | Fabric, Quilt | 1.21.1227 KB 1071 | — | |
| 1.21 | Fabric, Quilt | 1.21227 KB | — | |
| 1.20.4 | Fabric, Quilt | 1.20.4225 KB 76 | — | |
| 1.20.1 | Fabric, Quilt | 1.20.1143 KB 608 | — |
Materiały, które tego wymagają
Opinie
Oceń Text Placeholder API jako pierwszy



