Reader

private class Reader(val getContents: Method?, val translatable: Class<*>, val getKey: Method, val getArgs: Method)

getContents is null on 1.18.2, where the component IS the translatable rather than holding one.

Constructors

Link copied to clipboard
constructor(getContents: Method?, translatable: Class<*>, getKey: Method, getArgs: Method)

Properties

Link copied to clipboard
private val getArgs: Method
Link copied to clipboard
private val getContents: Method?
Link copied to clipboard
private val getKey: Method
Link copied to clipboard
private val translatable: Class<*>

Functions

Link copied to clipboard
fun childrenOf(c: Component): List<Component>

The siblings, plus a translatable's arguments: the %s slots hold whole components, and Component.getSiblings never lists them. Only a Component argument can nest a key; a string or number one is plain text.

Link copied to clipboard
fun keyOf(c: Component): String?
Link copied to clipboard
private fun translatableOf(c: Component): Any?