asPropertyOrNull

open fun <C : NodeProperty<T>> asPropertyOrNull(superType: Class<in C>): C?
open fun <C : NodeProperty<T>> asPropertyOrNull(superType: KClass<in C>): C?

returns a NodeProperty of the provided superType.

Return

a capability of the provided type C

Parameters

C

type of capability

superType

the type of capability to retrieve