getState

abstract fun getState(player: Player, resourceId: Key): ResourceState?(source)

Returns how much of the resourceId the player has, or null if the player doesn't have the resource or their data isn't loaded.