Search in sources :

Example 16 with Family

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);
}
Also used : Family(com.djrapitops.plan.extension.icon.Family) Icon(com.djrapitops.plan.extension.icon.Icon)

Example 17 with Family

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);
}
Also used : Family(com.djrapitops.plan.extension.icon.Family) Icon(com.djrapitops.plan.extension.icon.Icon)

Aggregations

Family (com.djrapitops.plan.extension.icon.Family)17 Icon (com.djrapitops.plan.extension.icon.Icon)17 Color (com.djrapitops.plan.extension.icon.Color)15 ExtensionDescription (com.djrapitops.plan.extension.implementation.results.ExtensionDescription)5 ExtensionInformation (com.djrapitops.plan.extension.implementation.results.ExtensionInformation)1