crwdns130107:0crwdne130107:0

Tip

crwdns130109:0:doc:crwdne130109:0

crwdns130111:0:javadoc:crwdnd130111:0:javadoc:crwdne130111:0

crwdns130113:0crwdne130113:0

crwdns130115:0crwdne130115:0

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

PaginationList.Builder builder = PaginationList.builder();

crwdns130117:0crwdne130117:0

  • crwdns130119:0crwdne130119: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

crwdns130121:0crwdne130121:0

  • crwdns130123:0crwdne130123:0

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

crwdns130125:0crwdne130125:0

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

crwdns130127:0crwdne130127: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

crwdns130129:0crwdne130129:0

crwdns130131:0:javadoc:crwdnd130131:0:javadoc:crwdne130131:0

crwdns130133:0crwdne130133: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);