Class Table


  • public final class Table
    extends java.lang.Object
    Object for giving Plan table data.

    Usage: Table.builder().columnOne("columnName", new Icon(...)).addRow("Your", "Row", "Data").build()

    Tables about players can have up to 4 columns. Tables about server can have up to 5 columns.

    Icon colors are ignored.

    If a row has more values than the column limit, they are ignored. If a row has less values than table columns, a '-' is displayed to distinguish a missing value.

    If a table has no columns or rows, it is ignored.

    See Also:
    for associated annotation.
    • Method Detail

      • builder

        public static Table.Factory builder()
        Create a new Table Factory.
        Returns:
        a new Table Factory.
      • getColumns

        public java.lang.String[] getColumns()
      • getMaxColumnSize

        public int getMaxColumnSize()
      • getIcons

        public Icon[] getIcons()
      • getRows

        public java.util.List<java.lang.Object[]> getRows()