add(new CTask() {
private InterfaceComponent alch;
@Override
public void execute() {
System.out.println("Selected: " + Magic.HIGH_LEVEL_ALCHEMY.isSelected());
System.out.println("Border thickness: " + alch.getBorderThickness());
}
@Override
public boolean validate() {
return (alch = Magic.HIGH_LEVEL_ALCHEMY.getComponent()) != null;
}
});