ColorType type;
try {
Constructor<ColorType> c =ColorType.class.getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
c.setAccessible(true);
type = c.newInstance(255, 0, 0, 0);
} catch (NoSuchMethodException | InvocationTargetException | InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
settings.background_color = type;
ColorType type;
try {
Constructor<ColorType> c =ColorType.class.getConstructor(Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
c.setAccessible(true);
type = c.newInstance(255, 0, 0, 0);
} catch (NoSuchMethodException | InvocationTargetException | InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
settings.background_color = type;