infoProvider

abstract fun infoProvider(getInfo: (player: Player, block: Block, blockState: S) -> WailaInfo)

Sets the actual functionality of the info provider. The supplied lambda will be invoked when the given player looks at the given block state at the given position.


abstract fun infoProvider(base: RegistryEntry.Nova<WailaInfoProvider<S>>, modifyInfo: (player: Player, block: Block, blockState: S, info: WailaInfo) -> WailaInfo)

Sets the actual functionality of the info provider. First calls base, then further modifies the info in modifyInfo. The supplied lambda will be invoked when the given player looks at the given block state at the given position.