public static int getGateLocation(int icon) { return TimeGate.getByIcon(icon) != null ? TimeGate.getByIcon(icon).getMap() : TimeGate.YEAR_2099.getMap(); // Year 2099 as default }