类 TextTable
java.lang.Object
net.minecraftforge.common.util.TextTable
Utility to format data into a textual (markdown-compliant) table.
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
static class
static class
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
void
append
(StringBuilder destination, String lineEnding) Appends the data formatted as a table to the given string builder.void
clear()
static TextTable.Column
static TextTable.Column
column
(String header, TextTable.Alignment alignment) private void
printRow
(StringBuilder destination, List<String> values) private void
printSeparators
(StringBuilder destination)
-
字段详细资料
-
columns
-
rows
-
-
构造器详细资料
-
TextTable
-
-
方法详细资料
-
column
-
column
-
build
-
append
Appends the data formatted as a table to the given string builder. The padding character used for the column alignments is a single space (' '), the separate between column headers and values is a dash ('-'). Note that you *have* to specify a line ending, '\n' isn't used by default.The generated table is compliant with the markdown file format.
- 参数:
destination
- a string builder to append the table tolineEnding
- the line ending to use for each row of the table
-
printSeparators
-
printRow
-
add
-
clear
public void clear() -
getColumns
-