use of com.djrapitops.plan.extension.implementation.results.ExtensionTableData in project Plan by plan-player-analytics.
the class QueriedTables method toQueriedTabs.
public QueriedTabData toQueriedTabs() {
QueriedTabData tabData = new QueriedTabData();
for (Map.Entry<Integer, Map<Integer, Table.Factory>> entry : byPluginID.entrySet()) {
Integer pluginID = entry.getKey();
for (Table.Factory table : entry.getValue().values()) {
// Extra Table information
String tableName = TableAccessor.getTableName(table);
Color tableColor = TableAccessor.getColor(table);
// Extra tab information
String tabName = TableAccessor.getTabName(table);
ExtensionTabData.Builder tab = tabData.getTab(pluginID, tabName, () -> extractTabInformation(table));
tab.putTableData(new ExtensionTableData(tableName, table.build(), tableColor));
}
}
return tabData;
}
Aggregations