feat: Add item shop recipe exporter

This commit is contained in:
Linnea Gräf
2025-06-22 21:39:57 +02:00
parent 89047619c6
commit c74930d6cb
5 changed files with 201 additions and 24 deletions

View File

@@ -26,6 +26,13 @@ inline fun <T> Pattern.useMatch(string: String?, block: Matcher.() -> T): T? {
?.let(block)
}
fun <T> String.ifDropLast(suffix: String, block: (String) -> T): T? {
if (endsWith(suffix)) {
return block(dropLast(suffix.length))
}
return null
}
@Language("RegExp")
val TIME_PATTERN = "[0-9]+[ms]"

View File

@@ -3,6 +3,7 @@ package moe.nea.firmament.util.skyblock
import moe.nea.firmament.util.SkyblockId
object SkyBlockItems {
val COINS = SkyblockId("SKYBLOCK_COIN")
val ROTTEN_FLESH = SkyblockId("ROTTEN_FLESH")
val ENCHANTED_DIAMOND = SkyblockId("ENCHANTED_DIAMOND")
val DIAMOND = SkyblockId("DIAMOND")