crwdns138997:0crwdne138997:0
Tip
crwdns138999:0:doc:crwdne138999:0
crwdns139001:0:javadoc:crwdnd139001:0:javadoc:crwdne139001:0
crwdns139003:0crwdne139003:0
crwdns139005:0crwdne139005:0
import org.spongepowered.api.service.pagination.PaginationList;
PaginationList.Builder builder = PaginationList.builder();
crwdns139007:0crwdne139007:0
crwdns139009:0crwdne139009:0
import net.kyori.adventure.text.Component; import java.util.ArrayList; import java.util.List; List<Component> contents = new ArrayList<>(); contents.add(Component.text("Item 1")); contents.add(Component.text("Item 2")); contents.add(Component.text("Item 3")); builder.contents(contents);Note
crwdns139011:0crwdne139011:0
crwdns139013:0crwdne139013:0
builder.contents(Component.text("Item 1"), Component.text("Item 2"), Component.text("Item 3"));
crwdns139015:0crwdne139015:0
pppppppppppppppppppppppp Title pppppppppppppppppppppppp
Header
Item 1
Item 2
Item 3
...
ppppppppppppppppppppppp < 2/3 > ppppppppppppppppppppppp
Footer
crwdns139017:0crwdne139017:0
builder.title(Component.text("Title"))
.contents(Component.text("Item 1"), Component.text("Item 2"), Component.text("Item 3"))
.header(Component.text("Header"))
.footer(Component.text("Footer"))
.padding(Component.text("p"));
Note
crwdns139019:0crwdne139019:0
crwdns139021:0:javadoc:crwdnd139021:0:javadoc:crwdne139021:0
crwdns139023:0crwdne139023:0
PaginationList.builder()
.title(Component.text("Title"))
.contents(Component.text("Item 1"), Component.text("Item 2"), Component.text("Item 3"))
.header(Component.text("Header"))
.footer(Component.text("Footer"))
.padding(Component.text("p"))
.sendTo(msgReceiver);