paged Query
fun <T> CommandBuilder.pagedQuery(pageSize: Int = 8, header: Command.() -> Component, items: () -> Collection<T>, eachRow: Command.(index: Int, T) -> Component): Command
Builds a general paged query command with one optional integer parameter.
Author
MukjepScarlet
Parameters
page Size
the size of a single page. should be greater than 0.
header
the generator function for page header before all items.
items
provides all items. This function should be light-weighted.
each Row
controls how to render the item in chat HUD.