use of com.djrapitops.plan.extension.icon.Family in project Plan by plan-player-analytics.
the class ExtensionQueryResultTableDataQuery method extractDescription.
private ExtensionDescription extractDescription(ResultSet set) throws SQLException {
String name = set.getString("provider_name");
String text = set.getString(ExtensionProviderTable.TEXT);
String iconName = set.getString("provider_icon_name");
Family family = Family.getByName(set.getString("provider_icon_family")).orElse(Family.SOLID);
Icon icon = new Icon(family, iconName, Color.NONE);
return new ExtensionDescription(name, text, null, icon, 0);
}
use of com.djrapitops.plan.extension.icon.Family in project Plan by plan-player-analytics.
the class ExtensionServerTableDataQuery method extractDescription.
private ExtensionDescription extractDescription(ResultSet set) throws SQLException {
String name = set.getString("provider_name");
String text = set.getString(ExtensionProviderTable.TEXT);
String iconName = set.getString("provider_icon_name");
Family family = Family.getByName(set.getString("provider_icon_family")).orElse(Family.SOLID);
Icon icon = new Icon(family, iconName, Color.NONE);
return new ExtensionDescription(name, text, null, icon, 0);
}
Aggregations