Skip to main content
New Participant
May 16, 2025

Possible bug in Entity trySetMapvalue generic type argument

  • May 16, 2025
  • 0 replies
  • 188 views

The trySetMapValue is using the generic key type for the value:

public final inline fun <reified T, reified V> tryGetMapValue(attribute: kotlin.Int, key: T): V? { /* compiled code */ }
public final inline fun <reified T, reified V> trySetMapValue(attribute: kotlin.Int, key: T, value: T): kotlin.Boolean { /* compiled code */ }

Is this the intended behavior?

Also, what's the purpose of the Entity map? I'm trying to use it to save the internal state of the entity, but I don't know if this is ideal.

    This topic has been closed for replies.