aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/potatocrime/registry/PotatoTranslations.kt
blob: 062c88db018299174d51479a4dc54cd5031999d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.")

}