WailaInfoProviderBuilder
sealed interface WailaInfoProviderBuilder<S : BlockData> : RegistryEntryBuilder.Nova<WailaInfoProvider<S>>
A builder for WailaInfoProvider.
Properties
Functions
Link copied to clipboard
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
Adds the entry of the element being build to the given tags.