O Placeholder API
To je mali, JIJ API koji omogućava kreiranje i parsiranje placeholdera unutar stringova i Minecraft Text Components. Placeholder API koristi jednostavan format %modid:type% ili %modid:type data% (%modid:type/data% pre 1.19). Takođe uključuje jednostavan, opšti format teksta za upotrebu namenjen pojednostavljivanju korisničkog unosa u konfiguracijama/četovima itd.
Za korisnike
Omogućava korisnicima da konfigurišu više modova na sličan način bez gubljenja kompatibilnosti između modova. Placeholderi omogućavaju menjanje toga šta i gde se nalaze informacije unutar kompatibilnih modova.
Pored toga, Simplified Text Format omogućava da ih stilizujete na čitljiv način bez potrebe za ručnim pisanjem JSON-a ili korišćenjem generatora.
- Korišćenje placeholdera
- Podrazumevana lista placeholdera
- Lista placeholdera modova
- QuickText
- Simplified Text Format
Modovi koji uglavnom koriste ovaj api bi trebalo samo da ga uključe direktno, ali možete preuzeti ažuriranu verziju odavde ako je potrebno!
Za developere
Korišćenje Placeholder API-ja je jednostavan način da se postigne dobra kompatibilnost modova bez potrebe za implementacijom više api-ja specifičnih za modove. Pored toga, sistem za parsiranje placeholdera može se koristiti za zamenu sopstvenih statičkih (ili dinamičkih placeholdera) u Text-u koji je kreirao igrač ili pročitan iz konfiguracije. Ovo u kombinaciji sa Simplified Text Format omogućava stvaranje odličnog korisničkog/administratorskog iskustva.
- Početak rada
- Dodavanje placeholdera
- Parsiranje placeholdera
- TextNodes i NodeParsers
- Korišćenje Simplified Text Format (TextParserV1)
[JIJ]: Jar-in-Jar
Kako instalirati 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.
Verzije
Sa zavisnostima
| Minecraft | Loader | Fajl | Datum | Akcije |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3249 KB 1.143 | ||
| 26.2 | Fabric | 26.2249 KB 710 | — | |
| 26.1 | Fabric | 26.1248 KB 204 | — | |
| 1.21.11 | Fabric, Quilt | 1.21.11262 KB 2.275 | — | |
| 1.21.1 | Fabric, Quilt | 1.21.1227 KB 325 | — | |
| 1.21 | Fabric, Quilt | 1.21227 KB | — | |
| 1.20.4 | Fabric, Quilt | 1.20.4225 KB 42 | — | |
| 1.20.1 | Fabric, Quilt | 1.20.1143 KB 295 | — |
Sadržaj koji ga zahteva
Recenzije
Budi prvi koji će oceniti Text Placeholder API


