Package net.minecraftforge.common.util
Class TextTable
java.lang.Object
net.minecraftforge.common.util.TextTable
Utility to format data into a textual (markdown-compliant) table.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<TextTable.Column>private final List<TextTable.Row>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidappend(StringBuilder destination, String lineEnding) Appends the data formatted as a table to the given string builder.voidclear()static TextTable.Columnstatic TextTable.Columncolumn(String header, TextTable.Alignment alignment) private voidprintRow(StringBuilder destination, List<String> values) private voidprintSeparators(StringBuilder destination) 
- 
Field Details- 
columns
- 
rows
 
- 
- 
Constructor Details- 
TextTable
 
- 
- 
Method Details- 
column
- 
column
- 
build
- 
appendAppends 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. - Parameters:
- destination- a string builder to append the table to
- lineEnding- the line ending to use for each row of the table
 
- 
printSeparators
- 
printRow
- 
add
- 
clearpublic void clear()
- 
getColumns
 
-