aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-09-06 01:30:45 +0200
committerLinnea Gräf <nea@nea.moe>2025-09-06 01:30:45 +0200
commit005ef14949aacfc7a7af7a08bb67282f663b38ec (patch)
treee7365cefb36d7defa7cc9381adcef2f62503a5bb /src/main/kotlin/util
parentff358c56d926396d7dbab7a83e29a9f150a23a07 (diff)
downloadFirmament-005ef14949aacfc7a7af7a08bb67282f663b38ec.tar.gz
Firmament-005ef14949aacfc7a7af7a08bb67282f663b38ec.tar.bz2
Firmament-005ef14949aacfc7a7af7a08bb67282f663b38ec.zip
feat: Allow showing pickaxe ability timer on shovels
Fixes https://github.com/nea89o/Firmament/issues/248
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r--src/main/kotlin/util/skyblock/ItemType.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/kotlin/util/skyblock/ItemType.kt b/src/main/kotlin/util/skyblock/ItemType.kt
index 7a776b5..9045646 100644
--- a/src/main/kotlin/util/skyblock/ItemType.kt
+++ b/src/main/kotlin/util/skyblock/ItemType.kt
@@ -6,8 +6,7 @@ import moe.nea.firmament.util.mc.loreAccordingToNbt
import moe.nea.firmament.util.petData
-@JvmInline
-value class ItemType private constructor(val name: String) {
+data class ItemType private constructor(val name: String) {
companion object {
fun ofName(name: String): ItemType {
return ItemType(name)
@@ -41,6 +40,7 @@ value class ItemType private constructor(val name: String) {
val SWORD = ofName("SWORD")
val DRILL = ofName("DRILL")
val PICKAXE = ofName("PICKAXE")
+ val AXE = ofName("AXE")
val GAUNTLET = ofName("GAUNTLET")
val LONGSWORD = ofName("LONG SWORD")
val EQUIPMENT = ofName("EQUIPMENT")
@@ -57,6 +57,8 @@ value class ItemType private constructor(val name: String) {
val LEGGINGS = ofName("LEGGINGS")
val HELMET = ofName("HELMET")
val BOOTS = ofName("BOOTS")
+ val SHOVEL = ofName("SHOVEL")
+
val NIL = ofName("__NIL")
/**