crwdns119337:0crwdne119337:0

Tip

crwdns119339:0:doc:crwdne119339:0

crwdns119341:0:javadoc:crwdnd119341:0:javadoc:crwdne119341:0

crwdns119343:0crwdne119343:0

crwdns119345:0crwdne119345:0

import org.spongepowered.api.service.pagination.PaginationList;

PaginationList.Builder builder = PaginationList.builder();

crwdns119347:0crwdne119347:0

  • crwdns119349:0crwdne119349: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

crwdns119351:0crwdne119351:0

  • crwdns119353:0crwdne119353:0

builder.contents(Text.of("Item 1"), Text.of("Item 2"), Text.of("Item 3"));

crwdns119355:0crwdne119355:0

pppppppppppppppppppppppp Title pppppppppppppppppppppppp
Header
Item 1
Item 2
Item 3
...
ppppppppppppppppppppppp < 2/3 > ppppppppppppppppppppppp
Footer

crwdns119357:0crwdne119357: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

crwdns119359:0crwdne119359:0

crwdns119361:0:javadoc:crwdnd119361:0:javadoc:crwdne119361:0

crwdns119363:0crwdne119363: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);