Information expression
An information expression only reads the PlayerView passed in. Raw numbers, strings and booleans can be used directly as constants; operand objects must have a type. See Player information.
| Type | Purpose |
|---|---|
saturn:constant | Returns the fixed value in the definition. |
saturn:getter | Reads the result of a parameterized getter from the PlayerView passed in. |
saturn:local | Reads the local binding of the current list or table element. |
saturn:number | Converts an expression result into an information row number. |
saturn:text | Displays text, a translation component or existing formatted text. |
saturn:boolean | Converts an expression result into a boolean display value. |
saturn:items | Converts an expression result into an item collection display. |
saturn:meter | Generates a meter display from the current value, minimum and maximum. |
saturn:translate | Generates a text component that keeps the translation key and arguments. |
saturn:registry_name | Resolves the display name from a registry ID and an entry ID. |
saturn:format | Generates text from a format string and arguments. |
saturn:arithmetic | Performs numeric arithmetic on two expressions. |
saturn:compare | Compares two expressions and returns a boolean result. |
saturn:logic | Performs logical operations on boolean expressions. |
saturn:is_known | Checks whether an expression has a known value. |
saturn:if | Selects the then or else expression according to the condition. |
saturn:coalesce | Takes the first available expression result in order. |
saturn:list | Iterates the input collection and generates a display value for each element. |
saturn:table | Iterates the input collection and generates a table from the column definitions. |