aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-10-19 00:27:17 +0200
committerLinnea Gräf <nea@nea.moe>2025-10-19 00:27:17 +0200
commit28c3ba952d69c8a654301c9211d536493513fdd5 (patch)
treee5fc341fe7f12d2d5b7bc9d78474b9472d9af163 /src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
parent9036f2f09cab47bc78c0d7e5ae4909da745e07ec (diff)
downloadFirmament-28c3ba952d69c8a654301c9211d536493513fdd5.tar.gz
Firmament-28c3ba952d69c8a654301c9211d536493513fdd5.tar.bz2
Firmament-28c3ba952d69c8a654301c9211d536493513fdd5.zip
fix: strings in mc bindings
Diffstat (limited to 'src/main/kotlin/features/events/carnival/MinesweeperHelper.kt')
-rw-r--r--src/main/kotlin/features/events/carnival/MinesweeperHelper.kt17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt b/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
index 3baf5a5..e675cc9 100644
--- a/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
+++ b/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
@@ -45,7 +45,6 @@ object MinesweeperHelper {
enum class Piece(
- @get:Bind("fruitName")
val fruitName: String,
val points: Int,
val specialAbility: String,
@@ -118,24 +117,26 @@ object MinesweeperHelper {
val textureUrl = "http://textures.minecraft.net/texture/$textureHash"
val itemStack = createSkullItem(UUID.randomUUID(), textureUrl)
.setSkyBlockFirmamentUiId("MINESWEEPER_$name")
+ @get:Bind("fruitName")
+ val textFruitName = Text.literal(fruitName)
@Bind
fun getIcon() = MoulConfigPlatform.wrap(itemStack)
- @Bind
- fun pieceLabel() = fruitColor.formattingCode + fruitName
+ @get:Bind("pieceLabel")
+ val pieceLabel = Text.literal(fruitColor.formattingCode + fruitName)
- @Bind
- fun boardLabel() = "§a$totalPerBoard§7/§rboard"
+ @get:Bind("boardLabel")
+ val boardLabel = Text.literal("§a$totalPerBoard§7/§rboard")
- @Bind("description")
- fun getDescription() = buildString {
+ @get:Bind("description")
+ val getDescription = Text.literal(buildString {
append(specialAbility)
if (points >= 0) {
append(" Default points: $points.")
}
}
- }
+) }
object TutorialScreen {
@get:Bind("pieces")