crwdns149361:0crwdne149361:0
Tip
crwdns149363:0:doc:crwdne149363:0
crwdns149365:0:javadoc:crwdnd149365:0:javadoc:crwdne149365:0
crwdns149367:0crwdne149367:0
crwdns149369:0crwdne149369:0
import org.spongepowered.api.service.pagination.PaginationList;
PaginationList.Builder builder = PaginationList.builder();
crwdns149371:0crwdne149371:0
crwdns149373:0crwdne149373:0
import org.spongepowered.api.text.Text; import java.util.ArrayList; import java.util.List; List<Text> contents = new ArrayList<>(); contents.add(Text.of("Item 1")); contents.add(Text.of("Item 2")); contents.add(Text.of("Item 3")); builder.contents(contents);Note
crwdns149375:0crwdne149375:0
crwdns149377:0crwdne149377:0
builder.contents(Text.of("Item 1"), Text.of("Item 2"), Text.of("Item 3"));
crwdns149379:0crwdne149379:0
pppppppppppppppppppppppp Title pppppppppppppppppppppppp
Header
Item 1
Item 2
Item 3
...
ppppppppppppppppppppppp < 2/3 > ppppppppppppppppppppppp
Footer
crwdns149381:0crwdne149381:0
builder.title(Text.of("Title"))
.contents(Text.of("Item 1"), Text.of("Item 2"), Text.of("Item 3"))
.header(Text.of("Header"))
.footer(Text.of("Footer"))
.padding(Text.of("p"));
Note
crwdns149383:0crwdne149383:0
crwdns149385:0:javadoc:crwdnd149385:0:javadoc:crwdne149385:0
crwdns149387:0crwdne149387:0
PaginationList.builder()
.title(Text.of("Title"))
.contents(Text.of("Item 1"), Text.of("Item 2"), Text.of("Item 3"))
.header(Text.of("Header"))
.footer(Text.of("Footer"))
.padding(Text.of("p"))
.sendTo(msgReceiver);