getIdForServer

abstract fun getIdForServer(screen: AbstractContainerScreen<*>?): Int?

Used for example for slot click packets