MCPcopy Create free account
hub / github.com/Teneted/Tenet / add

Method add

src/main/java/net/minecraftforge/common/util/TextTable.java:110–124  ·  view source on GitHub ↗
(@Nonnull Object... values)

Source from the content-addressed store, hash-verified

108 }
109
110 public void add(@Nonnull Object... values)
111 {
112 if (values.length != columns.size())
113 {
114 throw new IllegalArgumentException("Received wrong amount of values for table row, expected " + columns.size() + ", received " + columns.size() + ".");
115 }
116 Row row = new Row();
117 for (int i = 0; i < values.length; i++)
118 {
119 String value = Objects.toString(values[i]);
120 row.values.add(value);
121 columns.get(i).fit(value);
122 }
123 rows.add(row);
124 }
125
126 public void clear()
127 {

Callers

nothing calls this directly

Calls 5

fitMethod · 0.80
addMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected