RarityData

@Serializable
data class RarityData(val id: RarityId = RarityId("common"), val color: String = "#ffffff", val cacheCommand: List<String> = emptyList(), val displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, @Serializable(with = ComponentSerializer::class) Component> = mapOf( Locale.JAPAN to Component.text("レアリティ"), ), val weight: Double = 1.0, val worthExpression: String = "1")

魚のレアリティを表すクラス

Parameters

id

レアリティのID

color

レアリティの色 Hex

displayName

レアリティの表示名

weight

レアリティの重み

Constructors

Link copied to clipboard
constructor(id: RarityId = RarityId("common"), color: String = "#ffffff", cacheCommand: List<String> = emptyList(), displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, @Serializable(with = ComponentSerializer::class) Component> = mapOf( Locale.JAPAN to Component.text("レアリティ"), ), weight: Double = 1.0, worthExpression: String = "1")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val displayName: Map<@Serializable(with = LocaleSerializer::class) Locale, @Serializable(with = ComponentSerializer::class) Component>
Link copied to clipboard
Link copied to clipboard
val weight: Double = 1.0
Link copied to clipboard