WailaInfoProviderBuilder

Properties

Link copied to clipboard
abstract var blocks: RegistryEntrySet.Paper<BlockType>

The blocks that this waila info provider applies to.

Link copied to clipboard

The entry of the element being built.

Link copied to clipboard
abstract var priority: Int

The priority of this waila info provider.

Functions

Link copied to clipboard
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.

Link copied to clipboard
abstract fun tags(vararg tags: RegistryEntrySet.Nova.Tag<WailaInfoProvider<S>>)

Adds the entry of the element being build to the given tags.