feat: Add tool/harvestability indicator
This commit is contained in:
@@ -34,7 +34,7 @@ import moe.nea.firmament.util.json.DashlessUUIDSerializer
|
||||
*/
|
||||
@JvmInline
|
||||
@Serializable
|
||||
value class SkyblockId(val neuItem: String) {
|
||||
value class SkyblockId(val neuItem: String) : Comparable<SkyblockId> {
|
||||
val identifier
|
||||
get() = Identifier.of("skyblockitem",
|
||||
neuItem.lowercase().replace(";", "__")
|
||||
@@ -48,6 +48,10 @@ value class SkyblockId(val neuItem: String) {
|
||||
return neuItem
|
||||
}
|
||||
|
||||
override fun compareTo(other: SkyblockId): Int {
|
||||
return neuItem.compareTo(other.neuItem)
|
||||
}
|
||||
|
||||
/**
|
||||
* A bazaar stock item id, as returned by the HyPixel bazaar api endpoint.
|
||||
* These are not equivalent to the in-game ids, or the NEU repo ids, and in fact, do not refer to items, but instead
|
||||
|
||||
Reference in New Issue
Block a user