diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt b/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt new file mode 100644 index 0000000..062c88d --- /dev/null +++ b/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt @@ -0,0 +1,24 @@ +package moe.nea.potatocrime.registry + +import net.minecraft.text.MutableText +import net.minecraft.text.Text + +object PotatoTranslations { + val allTranslations = mutableListOf<PT>() + + data class PT(val name: String, val default: String) { + fun format(vararg params: String): MutableText { + return Text.translatable(translationKey, *params) + } + + val translationKey = "potato-crime.text.$name" + + init { + allTranslations.add(this) + } + } + + val noCarrotsToDeposit = PT("no-carrots", "No carrots to deposit.") + val contrabandFillText = PT("fill-level", "Hidden carrots: %s/1000.") + +}
\ No newline at end of file |