Placeholders
AstralHeads registers three placeholder namespaces. heads is globally registered (RootPlaceholderContainer.get().registerPlaceholder(new HeadsPlaceholders(this))) and resolvable anywhere; head and category are ComplexPlaceholders carried by HeadEntity/HeadCategory instances themselves — they only become resolvable once an instance is placed into scope (e.g. a rendered head/category item in a menu, or an action argument like %head_id%). For the placeholder syntax itself (%namespace_key%, chaining, $e(...)) see Placeholders.
heads_*
Backed by HeadsPlaceholders, namespace heads.
Placeholder | Type | Description |
|---|---|---|
| list (chain point) | Every configured category ( |
| list (chain point) | An arbitrary 10 heads from the in-memory cache ( |
| list (chain point) | The viewing player's favorited heads ( |
Any other sub-key (or none) resolves to null.
head_*
HeadEntity itself is a ComplexPlaceholder (namespace head). A bare %head% (no sub-key) resolves to the HeadEntity object itself.
Placeholder | Type | Description |
|---|---|---|
|
| The head's |
|
| The human-friendly sequential id, or |
| String | Catalog display name, or the player's username. |
| String |
|
|
|
|
|
| The rendered |
| boolean | Whether the viewing player has this head favorited. Resolves to |
| double | The configured price for this head's |
|
| The configured |
category_*
HeadCategory itself is a ComplexPlaceholder (namespace category). A bare %category% (no sub-key) resolves to the HeadCategory object itself.
Placeholder | Type | Description |
|---|---|---|
| String | The category's id ( |
|
| The category's configured icon ( |
| list (chain point) | Every head whose |
Any other sub-key (or none, for any of the three namespaces) resolves to null.