1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package at.hannibal2.skyhanni.fishing data class SeaCreature( val displayName: String, val fishingExperience: Int, val chatColor: String, val rare: Boolean, ) { override fun toString(): String { return chatColor + rare() + displayName } private fun rare(): String { return if (rare) "§l" else "" } }