@Override
 public boolean setVar(String var) {
   try {
     food = Integer.parseInt(var);
     return true;
   } catch (NumberFormatException e) {
     DebugHandler.debugNumberFormat(e);
     return false;
   }
 }
 private MagicMaterial resolveUnknown(String stype, String sdata) {
   try {
     int type = Integer.parseInt(stype);
     if (sdata.equals("*")) {
       return new MagicUnknownAnyDataMaterial(type);
     } else {
       short data = ((sdata == null || sdata.isEmpty()) ? 0 : Short.parseShort(sdata));
       return new MagicUnknownMaterial(type, data);
     }
   } catch (NumberFormatException e) {
     DebugHandler.debugNumberFormat(e);
     return null;
   }
 }